Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!cmcl2!seismo!rlgvax!hadron!jsdy From: jsdy@hadron.UUCP (Joseph S. D. Yao) Newsgroups: net.lang.c Subject: Re: unary + Message-ID: <374@hadron.UUCP> Date: Thu, 17-Apr-86 00:44:56 EST Article-I.D.: hadron.374 Posted: Thu Apr 17 00:44:56 1986 Date-Received: Sat, 26-Apr-86 04:00:46 EST References: <2323@brl-smoke.ARPA> <687@bentley.UUCP> <951@dataioDataio.UUCP> Reply-To: jsdy@hadron.UUCP (Joseph S. D. Yao) Organization: Hadron, Inc., Fairfax, VA Lines: 15 Summary: Static has one meaning. In article <951@dataioDataio.UUCP> bright@dataio.UUCP (Walter Bright writes: >For all of those of you out there who were confused by the two distinct >meanings of the keyword 'static', speak up! > 1. If outside the scope of a function, do not make the symbol global. > 2. If inside the scope of a function, allocate storage in > the data segment instead of on the stack. The single meaning of static is: allocate storage in the appropriate (text code or data) segment and make the symbol not accessible outside this module. When used inside a function, "module" means "function"; when used outside, "module" means "file". [Maybe these are a differ- ent two distinct meanings.] -- Joe Yao hadron!jsdy@seismo.{CSS.GOV,ARPA,UUCP}