> You'd need to extend Int to conform to the protocol for the cast to succeed.

Ah, yes. And there lies the reason behind wanting to be able to extend Any - 
avoiding having to extend every possible type likely to be used - mutter, 
mutter ;-)

Is it worth putting i a formal proposal for the extension of Any, or has that 
already been done?

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to