• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: just C++ in xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: just C++ in xcode
      • From: Markian Hlynka <email@hidden>
    • Re: just C++ in xcode
      • From: Andreas Grosam <email@hidden>
References: 
 >just C++ in xcode (From: Joe Kurtz <email@hidden>)
 >Re: just C++ in xcode (From: Marshall Clow <email@hidden>)
 >Re: just C++ in xcode (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Help needed with install path and bundling libraries
  • Next by Date: Re: Finder won't open Xcode projects
  • Previous by thread: Re: just C++ in xcode
  • Next by thread: Re: just C++ in xcode
  • Index(es):
    • Date
    • Thread