[swift-dev] Marking a function as __attribute__((weak))

Philippe Hausler phausler at apple.com
Mon Mar 6 19:48:57 CST 2017


Is there a way to mark a function in swift (on Linux) to use the same emission strategy as weak declarations in c? 

I was to tinkering with some ideas on fixing some poor behavior in swift-corelibs-foundation and weak would potentially solve this specific case.

For reference this is the syntax I am interested in (since it is a bit obscure) https://en.m.wikipedia.org/wiki/Weak_symbol

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170306/d0a09ade/attachment.html>


More information about the swift-dev mailing list