• 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: error in using NSNumber's numberWithInt: method not flagged
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >error in using NSNumber's numberWithInt: method not flagged (From: Boyd Collier <email@hidden>)
 >Re: error in using NSNumber's numberWithInt: method not flagged (From: Kyle Sluder <email@hidden>)
 >Re: error in using NSNumber's numberWithInt: method not flagged (From: John McCall <email@hidden>)

  • Prev by Date: Re: Memory not being released in a timely manner
  • Next by Date: Re: Memory not being released in a timely manner
  • Previous by thread: Re: error in using NSNumber's numberWithInt: method not flagged
  • Next by thread: Re: error in using NSNumber's numberWithInt: method not flagged
  • Index(es):
    • Date
    • Thread