• 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: Jonas Maebe <email@hidden>
  • Date: Fri, 30 Sep 2005 10:05:14 +0200


On 30 sep 2005, at 09:02, Joe Kurtz wrote:

I sympathise with this statement. I was really looking
for a (named) "data repository" that I could use with
any code module simply by "using namespace n;"

<OT & tongue-in-cheek>
You know, I think what you really want is (Object) Pascal :) A variable from a unit belongs to that unit namespace, and can indeed be accessed without extra qualifier as soon as that unit is "used" somewhere else. It can also be accessed fully qualified by using "unitname.variablename" in case multiple namespaces contain a variable with that name.
</OT>



Jonas

PS: yes, Pascal units are less flexible than C++ namespaces, since in Pascal the unit namespace and the translation unit are one and the same thing. If you need more namespaces, you have to use classes (possibly with only a few static fields).
_______________________________________________
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
References: 
 >Re: just C++ in xcode (From: Joe Kurtz <email@hidden>)

  • Prev by Date: Re: just C++ in xcode
  • Next by Date: Re: converting resource filename to absolute pathname
  • Previous by thread: Re: just C++ in xcode
  • Next by thread: Re: just C++ in xcode
  • Index(es):
    • Date
    • Thread