Dynamic Libaries in D
Christopher Wright
dhasenan at gmail.com
Tue Oct 14 15:59:33 PDT 2008
Mike Parker wrote:
> 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.
Groovy, thanks. I use Linux, and even there I don't use extern; thus my
ignorance.
More information about the Digitalmars-d-learn
mailing list