Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!mit-eddie!ll-xn!cit-vax!elroy!smeagol!usc-oberon!sdcrdcf!ism780c!tim From: tim@ism780c.UUCP (Tim Smith) Newsgroups: comp.lang.c Subject: Re: Why are typedef names in the same name space as variable names? Message-ID: <4647@ism780c.UUCP> Date: Thu, 20-Nov-86 21:27:52 EST Article-I.D.: ism780c.4647 Posted: Thu Nov 20 21:27:52 1986 Date-Received: Fri, 21-Nov-86 20:32:41 EST References: <1092@spice.cs.cmu.edu> <307@cartan.Berkeley.EDU> <3644@utcsri.UUCP> Reply-To: tim@ism780c.UUCP (Tim Smith) Distribution: net Organization: Interactive Systems Corp., Santa Monica, CA Lines: 20 There is already a problem with telling when the declarations end. Consider this program: main() { a; /* declare an integer variable */ a = 1; /* put something in it */ } Every C compiler I have tried complains about an undeclared variable on line 2. If "a" is a global, they have no problem: a; main() { a = 1; } -- emordnilapanalpanama Tim Smith USENET: sdcrdcf!ism780c!tim Compuserve: 72257,3706 Delphi or GEnie: mnementh