Re: ivar name clashes with gcc3
Re: ivar name clashes with gcc3
- Subject: Re: ivar name clashes with gcc3
- From: Thomas Engelmeier <email@hidden>
- Date: Wed, 8 Feb 2006 23:57:48 +0100
On 08.02.2006, at 23:14, Ricky Sharp wrote:
Not sure of any compiler setting for ivars, but what I currently do
is suffix all my ivars with _II (My company initials). I also
modify all methods to include _II.
For example:
int value_II;
- (int)computeSum_II:(int)anAugend addend:(int)anAddend;
I did this to primarily avoid name collisions with Apple.
Well, I've seen pretty often "grown" code with more than one pre- /
suffix which reflects which company owned it at a given time of
creation. I usually prefer to use the author (TE) as pre- / suffix ;-)
Regards,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden