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
}
}
Krystof
> 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
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution