• 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: ivar name clashes with gcc3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >ivar name clashes with gcc3 (From: Camillo Lugaresi <email@hidden>)
 >Re: ivar name clashes with gcc3 (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: notification received twice
  • Next by Date: Re: Getting exact height of NSAttributedString
  • Previous by thread: Re: ivar name clashes with gcc3
  • Next by thread: Re: ivar name clashes with gcc3
  • Index(es):
    • Date
    • Thread