version and extern problems
Carlos Santander
csantander619 at gmail.com
Mon Jul 9 11:50:13 PDT 2007
Walter Bright escribió:
> Georg Wrede wrote:
>> Why not
>>
>> extern(ecc) void function() foo;
>>
>> where ecc would resolve to Windows or C.
>>
>> This of course requires some tweaking of the compiler, but it might be
>> worth it.
>
> Do you mean "ecc" being a magic identifier that the compiler sets to
> Windows on Windows, and C otherwise? That might be a pretty good idea.
> Why "ecc", though? It doesn't jump out at me what it might mean.
>
> How about "System" ?
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?
--
Carlos Santander Bernal
More information about the Digitalmars-d
mailing list