• 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: Sending messages to nil on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending messages to nil on Intel


  • Subject: Re: Sending messages to nil on Intel
  • From: Nat! <email@hidden>
  • Date: Thu, 4 Aug 2005 21:49:22 +0200


Am 01.08.2005 um 21:49 schrieb Felix Schwarz:

And, asked more generally, should I continue to write "compact" code as above, or do I have to write less compact code like this in order to achieve compatiblity with the upcoming x86 Macs:


I wrote n = [array count]; regardless of array being nil or not on Openstep (the Cocoa predecessor) a few days back. That was an i386 implementation and I fully expect that to work again on the next platform.


As it is trivial for the language maintainers to set the "integer" return to zero on the nil path in objc_msgSend - with no real life performance loss - and keep compatibility with like 99% of the code written, the chances of this not working in the next release is zero in my estimation.

Ciao
    Nat!
------------------------------------------------------
The lazy, incompetent, petty minded, short sighted
masses recognize one of their own, and they are
flocking like the filthy little sheep they are.
   -- H. Suleiman


_______________________________________________ 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: 
 >Sending messages to nil on Intel (From: Felix Schwarz <email@hidden>)

  • Prev by Date: Re: NSWorkspace
  • Next by Date: Re: Need CVS Advice
  • Previous by thread: Re: Sending messages to nil on Intel
  • Next by thread: Obj-C compiler warnings
  • Index(es):
    • Date
    • Thread