Re: just C++ in xcode
Re: just C++ in xcode
- Subject: Re: just C++ in xcode
- From: "Christopher Nagel" <email@hidden>
- Date: Thu, 29 Sep 2005 09:30:38 -0400
Wow, that was fun reading! So, unlike C#, C++'s "using" directive does not save you typing the FQEN (fully-qualified entity name)? One would have thought that "using namespace n" meant that any reference to x would translate to n::x , no? If not, I wonder what does 'using' buy you?
Chris
On Thu, 29 Sep 2005 15:07:48 +0200, Andreas Grosam wrote
> On 29.09.2005, at 05:53, Marshall Clow wrote:
>
>
> Maybe this is a C++ question not having to do with
> xcode, but I'm desparate...
>
> If I have a named namespace in foo1.h:
...
> namespace n {
> int x;
> };
> using namespace n;
> x = 1;
>
> The statement above
> x = 1;
> actually introduces a new variable in global space which does not have a type.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden