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. 

So if your module really needs to do something to clean up, it could call the 
(C standard) function atexit() to install a callback.

—Jens
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to