The compiler knows absolutely NOTHING.

It is up to the runtime to determine which implementation to call when a 
message is sent. This is the dynamic nature of Objective-C.

> On Aug 19, 2015, at 02:28, Richard Charles <rcharles...@gmail.com> wrote:
> 
> 
>> On Aug 18, 2015, at 11:20 AM, Jens Alfke <j...@mooseyard.com> wrote:
>> 
>> Yeah, there’s no way for the runtime to tell the difference between an 
>> ‘expected’ method override and an ‘unexpected’ one.
> 
> How about an annotation for the compiler. Something like _Override or 
> _NSOverride where you declare your intent to intentionally override a method 
> or property.
> 
> Does the compiler know about Objective-C method or property overrides?
> 
> --Richard Charles
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/max%40maxchan.info
> 
> This email sent to m...@maxchan.info

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to