[swift-evolution] Static Dispatch Pitfalls

Krystof Vasa kvasa at icloud.com
Fri May 20 12:39:32 CDT 2016

How about the other way around, allowing something like this, explicitly specifying the dynamic nature of the function, thus forcing the dynamic dispatch?

protocol MyProtocol { }

extension MyProtocol {
	dynamic func getInt() -> Int {
		return 0


> I don’t think that would fly :-).  That said, has anyone considered requiring a keyword on the method in the protocol extension that makes it explicit that the dispatch is non-dynamic?
> -Chris
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160520/991e35a1/attachment.html>

More information about the swift-evolution mailing list