Quiz of the day: Why does this not work?

Sean Kelly sean at invisibleduck.org
Thu Nov 6 13:07:23 PST 2008


Jarrett Billingsley wrote:
> 
> DLLs are unusable.  It's not actually D's fault, it's the fault of
> Microsoft using such a poorly-capable dynamic library loading system.
> Basically, the problem with DLLs is that they cannot load symbols from
> the "host" application at load-time.  This means that information
> contained in the host is not available to the DLL unless the host
> passes that data to the DLL after it has been loaded.

Darnit, I forgot that bit.  So some pretty complex compiler / runtime 
magic would be required for this to work.  What a mess.


Sean



More information about the Digitalmars-d mailing list