<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1482373946118_13250" dir="ltr"><span>> </span>Unloading Swift modules will likely never be supported, since this would impose a ton of complexity and performance cost on the runtime for little benefit.</div><div id="yui_3_16_0_ym19_1_1482373946118_13250" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1482373946118_13250" dir="ltr">Hmmm… so Swift will only support static linking? I thought Swift is a modern programming language with modern and advance features. Even Pascal/Delphi has had those features since ages ago.</div><div></div><div id="yui_3_16_0_ym19_1_1482373946118_13251"> </div><div class="signature" id="yui_3_16_0_ym19_1_1482373946118_13262"><div id="yui_3_16_0_ym19_1_1482373946118_13261"><br></div>–Mr Bee<div id="yui_3_16_0_ym19_1_1482373946118_13277"><br></div></div> <div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1482373946118_13297"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1482373946118_13296" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1482373946118_13295"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1482373946118_13294"> <div dir="ltr" id="yui_3_16_0_ym19_1_1482373946118_13293"><font size="2" face="Arial" id="yui_3_16_0_ym19_1_1482373946118_13292"> Pada Kamis, 22 Desember 2016 1:06, Joe Groff via swift-users <swift-users@swift.org> menulis:<br></font></div> <br><br> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1482373946118_13298"><br clear="none">> On Dec 20, 2016, at 8:54 AM, Jens Alfke via swift-users <<a shape="rect" ymailto="mailto:swift-users@swift.org" href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br clear="none">> <br clear="none">> Also, AFAIK there is no mechanism in Swift (yet) to load or unload a module at runtime, so a module load occurs when the program starts up, and an unload occurs when the program exits. <br clear="none"><br clear="none">dlopen works fine, though the only supported ways of getting a callable symbol out of the loaded image are currently to use a C entry point or look up a type defined in the module by name. Unloading Swift modules will likely never be supported, since this would impose a ton of complexity and performance cost on the runtime for little benefit. (Apple's ObjC runtime does not support unloading dylibs after classes inside them have been reified either.)<br clear="none"><br clear="none">-Joe<div class="yqt9220752158" id="yqtfd83817"><br clear="none">_______________________________________________<br clear="none">swift-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:swift-users@swift.org" href="mailto:swift-users@swift.org" id="yui_3_16_0_ym19_1_1482373946118_15401">swift-users@swift.org</a><br clear="none"><a shape="rect" href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank" id="yui_3_16_0_ym19_1_1482373946118_15402">https://lists.swift.org/mailman/listinfo/swift-users</a><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>