• 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: NS_INLINE and obj = nil;?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NS_INLINE and obj = nil;?


  • Subject: Re: NS_INLINE and obj = nil;?
  • From: Andy Lee <email@hidden>
  • Date: Mon, 04 Jan 2010 05:16:17 -0500

On Jan 3, 2010, at 5:26 PM, Scott Ribe wrote:
>> Easily fixed:
>>
>> #define GDRelease(x) [(x) release], (x) = nil, (void)0
>
> Not really a good fix; compiler error is preferable to tweaking your macro
> to allow compilation of nonsense ;-)

Actually this causes a compiler error if you try "if (GDRelease(...))".

--Andy

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: NS_INLINE and obj = nil;? (From: Scott Ribe <email@hidden>)

  • Prev by Date: NSTreeController/OutlineView w/CoreData & Bindings & multiple selection?
  • Next by Date: Simple Core Data problem - zombie objects left in store
  • Previous by thread: Re: NS_INLINE and obj = nil;?
  • Next by thread: Re: Array Controller "Select Inserted Objects" [SOLVED]
  • Index(es):
    • Date
    • Thread