Re: just C++ in xcode
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