Re: error in using NSNumber's numberWithInt: method not flagged
Re: error in using NSNumber's numberWithInt: method not flagged
- Subject: Re: error in using NSNumber's numberWithInt: method not flagged
- From: Sean McBride <email@hidden>
- Date: Mon, 10 Jun 2013 11:35:07 -0400
- Organization: Rogue Research Inc.
On Sun, 9 Jun 2013 13:45:52 -0700, John McCall said:
>Playing with the bit-representation of Objective-C pointers specifically
>is ill-advised because the implementation reserves the right to play its
>own games with object pointers (such as the optimized representation of
>integer values when boxed as NSNumbers on 64-bit platforms), but
>nonetheless this behavior is inherited from C and cannot really be changed.
So wouldn't a warning (not error) from the compiler be desirable?
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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