Interfacing with XPCOM

Walter Bright newshound1 at digitalmars.com
Sun Nov 30 18:23:34 PST 2008


John Reimer wrote:
> Hello Walter,
> 
>> So are you saying that XPCOM will work on Linux with D if only the
>> extern(Windows) was actually extern(C++) ?
>>
> 
> 
> Just to make this clear, I'm banking on that the fact that extern(C++) 
> on an interface should also remove the necessity to alias to a COM 
> interface on linux.  I am guessing that extern(C++) makes a vtable the 
> same as COM minus the extern(Windows) decoration.  If this is not 
> exactly true, then my hypothesis won't hold. :-)

Neither affects the vtable layout. They affect the calling convention 
(register usage, parameter order, stack cleaning, return value).



More information about the Digitalmars-d mailing list