Interfacing with XPCOM

John Reimer terminal.node at gmail.com
Sun Nov 30 19:33:26 PST 2008


Hello Tomas,

> 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"
> 


Yeah, that was it.  I think we just had some miscommunication going on. 

-JJR





More information about the Digitalmars-d mailing list