Inherent code performance advantages of D over C?

Rainer Schuetze r.sagitario at gmx.de
Fri Dec 13 07:25:24 PST 2013



On 13.12.2013 15:59, Adam D. Ruppe wrote:
> On Friday, 13 December 2013 at 13:07:32 UTC, Rainer Schuetze wrote:
>> Implicite TLS in XP-DLLs has a workaround in druntime for a few years
>> now (emulating it for the system). IIRC Denis has even found a
>> solution how to unload these DLLs later.
>
> There must still be some bugs, I tried the COM thing not long ago (I
> think it was October) and it worked so perfectly on Vista and Win7 yet
> failed so miserably on XP. D exes are fine, but the dll loaded into
> another program didn't work well at all.

Do you use DllMain from http://dlang.org/dll.html#Cinterface? I guess 
so, if it runs on Vista/Win7.

What version of XP are you running? It might be a special version of 
ntdll.dll that is not supported. (I'll have to dig up supported versions 
from an older disk, though.)

Visual D is full of COM, but it does not use the default COM 
implementation, see https://d.puremagic.com/issues/show_bug.cgi?id=4092.




More information about the Digitalmars-d mailing list