Implicit Delayed DLL Loading?

%u wfunction at hotmail.com
Tue Jan 4 01:03:45 PST 2011


Hi,

I was wondering, is there a way to tell the compiler to implicitly delay-load
a DLL, like you can with the /DELAYLOAD:DllName option in Visual C++?

I was thinking that, if there isn't, it might be useful to extend the "lazy"
keyword to cover functions (or maybe create a @delay or @lazy annotation), so
as to tell the compiler to delay-load a function. This is very useful for
coding, as delay-loading DLLs by hand becomes a pain when the number of
functions increases to more than a handful.

Thank you!


More information about the Digitalmars-d mailing list