Dynamic Libaries in D
Mike Parker
aldacron at gmail.com
Tue Oct 14 03:03:26 PDT 2008
Christopher Wright wrote:
> extern (Windows) tells the compiler to disguise the functions so they
> look like regular C functions in the resulting object file. It doesn't
> change the meaning of any code inside.
Not quite. That would be extern(C). Using the Windows version will give
you a function with the stdcall calling convention, which changes the
order in which parameters are passed on the stack in a function call.
Not a good idea to use in the general case.
More information about the Digitalmars-d-learn
mailing list