Interfacing with XPCOM

Walter Bright newshound1 at digitalmars.com
Mon Dec 1 00:43:33 PST 2008


Tomas Lindquist Olsen wrote:
> Walter Bright wrote:
>> John Reimer wrote:
>>> So extern(System) does not translate to extern(C)?   Does that mean 
>>> that all extern(System)'s in my code are defaulting to extern(D)?
>>>
>>> That'd be a shocker to me. :)  If that's true, it would certainly 
>>> change my understanding of what I thought was making my code work. :D
>>
>> No, extern(System) does on linux just what it does on windows, it's 
>> just that there's no point to it on linux.
> 
> I thought the whole point of extern(System) was to provide a workaround 
> when...
> 
> version(Windows)
>     extern(Windows):
> else
>     extern(C):
> 
> ...stopped working ?!?
> 
> from spec: "System is the same as Windows on Windows platforms, and C on 
> other platforms"

I goofed, you're right.



More information about the Digitalmars-d mailing list