[swift-evolution] Passing class protocols to functions accepting AnyObject

Charles Srstka cocoadev at charlessoft.com
Tue Dec 6 13:53:03 CST 2016


The need to use === is at the root of my problem as well.

Charles

> On Dec 6, 2016, at 1:30 PM, Андрей Володин via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Been struggling with this kind of problem. My case: I have an array of class protocol and can’t use my extension that removes AnyObject from array by comparing pointers via ===. 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list