• 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: Stupid objective-c question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid objective-c question


  • Subject: Re: Stupid objective-c question
  • From: Alastair Houghton <email@hidden>
  • Date: Tue, 27 Sep 2016 08:51:44 +0100

On 27 Sep 2016, at 05:31, Britt Durbrow <email@hidden> wrote:
>
> FWIW, it’s currently an implementation detail that SELs do map into the global address space in a way that doesn’t collide with anything else; but technically, they are in their own address space and the system could map them otherwise in a manner that does have collisions with other stuff.

That’s true.  IIRC GNUStep SEL values don’t work the same way as they do with the Apple/NeXT runtime, so this trick wouldn’t work there.

> In practice, I don’t think that will ever happen, because a) too much existing code makes the assumption that a SEL is de-referenceable or otherwise depends on this implementation detail; and b) we have 64-bit addressing, so we’re not going to run out of address space such that making that change would be advantageous.

Agreed, it seems unlikely that Apple would change it; not impossible, but quite unlikely.  As I say, relying on it means your code won’t straightforwardly port to GNUStep, but most of us don’t care too much about that.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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: 
 >Stupid objective-c question (From: Gabriel Zachmann <email@hidden>)
 >Re: Stupid objective-c question (From: Graham Cox <email@hidden>)
 >Re: Stupid objective-c question (From: Uli Kusterer <email@hidden>)
 >Re: Stupid objective-c question (From: Graham Cox <email@hidden>)
 >Re: Stupid objective-c question (From: Slipp Douglas Thompson <email@hidden>)
 >Re: Stupid objective-c question (From: Britt Durbrow <email@hidden>)

  • Prev by Date: Re: Stupid objective-c question
  • Next by Date: Re: NSTextView read real text content (without 0xA added by wordwrap)
  • Previous by thread: Re: Stupid objective-c question
  • Next by thread: Re: Stupid objective-c question
  • Index(es):
    • Date
    • Thread