DMD 1.020 release
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Thu Jul 26 06:37:37 PDT 2007
Stewart Gordon wrote:
> "Walter Bright" <newshound1 at digitalmars.com> wrote in message
> news:f83il1$1b57$1 at digitalmars.com...
>> extern (System)
>>
>> should work now.
>>
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.020.zip
>
> What is the practical use of extern (System)?
Some libraries have the same interface (functions) on different
operating systems, but with a different calling convention. (Typically
extern(Windows) on Windows and extern(C) elsewhere)
This used to be handled by putting
---
version(Windows) {
extern(Windows):
} else {
extern(C):
}
---
at the top of the interface module but apparently the fact that that
worked was due to a bug, and it was fixed...
More information about the Digitalmars-d-announce
mailing list