Article View: net.lang.c
Article #9696Re: Why are typedef names in the same name space as variable names?
From: Brian Russ
Date: Sun, 02 Nov 1986 02:26
Date: Sun, 02 Nov 1986 02:26
25 lines
1123 bytes
1123 bytes
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? ...
> ... This means that you cannot have
>something like:
>
> struct foo { /* ... */ };
>
> int foo;
>
>in C++.
>
If they weren't in the same name space, you could, in addition
to the above, write:
struct foo { /* ... */ };
foo foo;
Yuch! Do you really want/need this flexibility? In my opinion,
it's better the way it is now.
Technical Details
Message-ID:
<2183@sdcsvax.UCSD.EDU>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!sdcsvax!brussReferences:
<4220@ut-ngp.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!sdcsvax!bruss From: bruss@sdcsvax.UCSD.EDU (Brian Russ) Newsgroups: net.lang.c,net.lang.c++ Subject: Re: Why are typedef names in the same name space as variable names? Message-ID: <2183@sdcsvax.UCSD.EDU> Date: Sat, 1-Nov-86 21:26:47 EST Article-I.D.: sdcsvax.2183 Posted: Sat Nov 1 21:26:47 1986 Date-Received: Mon, 3-Nov-86 22:30:19 EST References: <4220@ut-ngp.UUCP> Reply-To: bruss@sdcsvax.UUCP (Brian Russ) Organization: U.C. San Diego Lines: 25 Keywords: typedef variable name space