loadLibrary string

"Luís "Luís
Sat Jun 1 13:01:17 PDT 2013


In the talk "Shared Libraries in D by Martin Nowak" loadLibrary 
is presented with the signature:

     void* loadLibrary(string path);

But in the docs we have:

     static void* loadLibrary(in char[] name);

Any particular reason for using "in char[]" instead of string? (I 
suppose the "in" makes the string head constant, but not the 
string body.)

Path also seems slightly more explicit than "name", so consider 
that if someone wants to change it.


More information about the Digitalmars-d mailing list