> On Nov 10, 2017, at 5:36 PM, Joe Groff <jgr...@apple.com> wrote:
> 
> How `MyObject.foo(_:bar:)` gets implemented is its own business, as far as 
> the compiler is concerned. The compile-time name resolution for the method 
> isn't impacted.
> 
> -Joe

The compile-time name resolution for the method doesn’t happen *at all.* If the 
method is dynamic, it’s resolved at runtime. The method may or may not even 
exist; all you know is that the object address, the method name, and a list of 
the arguments will be passed to a function called objc_msgSend(), which 
conceptually is remarkably similar to Chris’s dynamicCall().

Charles

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to