Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Draft Proposal for Namespaces in Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draft Proposal for Namespaces in Objective-C



On 07.04.2012, at 20:42, Jens Ayton wrote:
> @selector(*.foo), by vague analogy to globbing? It’s new magic punctuation, but I think it’s clearer than @selector(nil, foo) – it’s at least obvious that it’s something different from a name, if not what it actually is.

 Just curious: Why do we even need a non-namespaced selector? Can't we just implement a particular namespace, e.g. "std" and make it binary compatible to un-namespaced selectors behind the scenes? That would make the explanation in the docs much easier: Every selector has a namespace. Apple's stuff lives in the "std" namespace. Even retroactively. Done. So the runtime internally special-cases "std" to be the same as non-namespaced? NSSelectorFromString() would just do the right thing if given a string without dots in it.

Cheers,
-- Uli Kusterer
"Die Zeugen des TeachText sind überall..."
http://www.wiederholungstaeter-podcast.de




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Draft Proposal for Namespaces in Objective-C (From: Kyle Sluder <email@hidden>)
 >Re: Draft Proposal for Namespaces in Objective-C (From: Kyle Sluder <email@hidden>)
 >Re: Draft Proposal for Namespaces in Objective-C (From: Kyle Sluder <email@hidden>)
 >Re: Draft Proposal for Namespaces in Objective-C (From: Jonathan Schleifer <email@hidden>)
 >Re: Draft Proposal for Namespaces in Objective-C (From: Kyle Sluder <email@hidden>)
 >Re: Draft Proposal for Namespaces in Objective-C (From: Jens Ayton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.