Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!spice.cs.cmu.edu!jgm From: jgm@spice.cs.cmu.edu (John Myers) Newsgroups: comp.lang.c Subject: Re: Why are typedef names in the same name space as variable names? Message-ID: <1092@spice.cs.cmu.edu> Date: Thu, 13-Nov-86 19:50:46 EST Article-I.D.: spice.1092 Posted: Thu Nov 13 19:50:46 1986 Date-Received: Fri, 14-Nov-86 01:55:31 EST Reply-To: jgm@spice.cs.cmu.edu (John Myers) Distribution: net Organization: Carnegie-Mellon University, CS/RI Lines: 13 Keywords: In article <4220@ut-ngp.UUCP> dlnash@ut-ngp.UUCP (Donald L. Nash) writes: >Why are typedef names in the same name space as variable names?... If they weren't, then what would the output of the following program be? #include main() { typedef car foo; long foo; printf("%d\n",sizeof(foo)); }