version and extern problems

Walter Bright newshound1 at digitalmars.com
Mon Jul 9 13:12:52 PDT 2007


Carlos Santander wrote:
> I'm guessing this would be the default calling convention for the 
> system. If the system was written in C++ (BeOS?), would it have to mean 
> "extern(C++)"? If someone wrote an OS in D, would it just be 
> "extern(D)"? Or would it just be specified that "System" means "Windows" 
> on Windows and "C" everywhere else?

No, it would be what is necessary to interface to packages that pick 
pointless things like "Windows" calling conventions. If lots of C 
packages used "FooBar" calling conventions on XXX, then it would mean 
"FooBar" on that system.



More information about the Digitalmars-d mailing list