init(for aClass: AnyClass) is an unimplemented API on Linux. I am exploring around this to implement the same and have a couple of queries:
-> In the context of Linux platform, how relevant is this API for loading bundles dynamically?
On Darwin, this API really only works if the bundle is already loaded. It’s more about getting the NSBundle instance for a particular class.
-> In a Bundle, how do I go about getting information on the classes that are available within it?
On Darwin (again) we ask dyld for the library that holds the pointer for the class info, then use further dyld functions to find the path for that library, and use that info to construct the bundle.
These seem reasonable on Linux and in Swift, if we can get some kind of metadata about the class.
On Nov 18, 2016, at 3:03 AM, Mamatha Busi via swift-corelibs-dev <email@example.com> wrote:
Any related insights/suggestions would help.
swift-corelibs-dev mailing list