[swift-users] Doubt about the runtime system

Brent Royal-Gordon brent at architechies.com
Tue Jun 6 13:35:37 CDT 2017


> On Jun 6, 2017, at 6:55 AM, Ronaldo Faria Lima via swift-users <swift-users at swift.org> wrote:
> 
> The /perform/ method may fail if the configured class does not have it. But, testing for the method existence by using /responds(to:)/ always return false. 


That's odd. Could you use `aClass.instancesRespond(to: sel)` instead?

-- 
Brent Royal-Gordon
Architechies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170606/f84b6c37/attachment.html>


More information about the swift-users mailing list