Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!decvax!decwrl!sun!guy From: guy@sun.uucp (Guy Harris) Newsgroups: net.lang.c Subject: Re: Forward Referencing of Static Variables OK? Message-ID: <2867@sun.uucp> Date: Thu, 10-Oct-85 00:19:44 EDT Article-I.D.: sun.2867 Posted: Thu Oct 10 00:19:44 1985 Date-Received: Sun, 13-Oct-85 04:08:11 EDT References: <365@tekcbi.UUCP> <268@ssc-vax.UUCP> Organization: Sun Microsystems, Inc. Lines: 13 > From the way I read K&R, the "static" keyword is redundant, unless > it is inside a function. In other words, "static int thing;" is > equivalent to "int thing;" unless the declaration takes place inside > a function. (Any comment on that??) Yup. How about "wrong"? 11.2 "Scope of externals": Identifiers declared "static" at the top level in external definitions are not visible in other files. And identifiers not so declared *are* visible in other files... Guy Harris