Path: utzoo!utgpu!utcsri!jarvis.csri.toronto.edu!dgp.toronto.edu!flaps From: flaps@dgp.toronto.edu (Alan J Rosenthal) Newsgroups: comp.lang.c Subject: Re: global data in C (follow-up) Message-ID: <8803250345.AA01115@champlain.dgp.toronto.edu> Date: 25 Mar 88 03:45:54 GMT Article-I.D.: champlai.8803250345.AA01115 Posted: Thu Mar 24 22:45:54 1988 References: <7523@ncoast.UUCP> Distribution: comp Organization: University of Toronto Lines: 23 In article <7523@ncoast.UUCP> btb@ncoast.UUCP (Brad Banko) writes: >perhaps a good extension to C would be a "global" type declaration: >global (data declarator) >which would tell the compiler and linker that the referenced data should >be stored in only one common place. This was what dmr originally wanted "extern" to mean, which I believe accounts for the double meanings of "extern" and "static" as they are used today. You can see remnants of this idea in the discussion of "extern" in various places in K&R; for example, it says that extern is the default storage class for variables declared outside of functions, implying that "int a" and "extern int a" are the same when written outside of functions. The original idea of extern was modified in the face of non-unix stubborn linkers. ajr -- If you had eternal life, would you be able to say all the integers?