External modules
    Mineko 
    uminekorox at gmail.com
       
    Fri Jan  3 05:00:40 PST 2014
    
    
  
This is another short one, is it possible to export/extern (C) an 
entire module, is it safe?
Also, how do you import said module, this one I don't quite get.
So, something like this:
dll.d:
extern (C) module test;
int foo() {...}
-------------------------
main.d
int main(string[] args)
{
    ...
    (dl loading code for dll.so)
    module dll = dlsym(lh, "test");
    ...
}
So, aside from the crappy abstraction, something like that?
    
    
More information about the Digitalmars-d-learn
mailing list