> On Jun 24, 2016, at 11:05 AM, Saleem Abdulrasool via swift-dev 
> <swift-dev@swift.org> wrote:
> 
> Hi,
> 
> The blocks runtime itself is pretty tiny, and works across various targets 
> already, so including it is not too onerous.  As such, Id like to propose 
> enabling blocks across all the targets.
> 
> This make it easier to then import code on targets which have optional blocks 
> support.  For most users, this would be a transparent change, but would mean 
> that the clang importer goes through a more similar path across the various 
> targets.

It's a little trickier than that. We only support Swift refcounting object 
headers on non-Darwin platforms, since there's no universal objc_retain 
implementation to fall back to. Blocks don't use Swift-compatible refcounting 
with the current runtime.

-Joe
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to