Re: static data members
Re: static data members
- Subject: Re: static data members
- From: Ondra Cada <email@hidden>
- Date: Sat, 24 Apr 2004 02:33:12 +0200
Ivan,
On 24.4.2004, at 2:13, Ivan Kourtev wrote:
>
I suspect that in Objective-C there is no straightforward equivalent
>
to a C++'s static data member of a class, that is, a data member that
>
is shared among all instances of a class?
Wrong, there is: a plain old static variable.
>
... Other than declaring a static variable in the class's *.m file,
>
are there any other suggested approaches to this situation?
No: why would you want anything other?
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.