Compile time function execution...

Serg Kovrov kovrov at no.spam
Sat Feb 24 14:17:22 PST 2007


Frits van Bommel wrote:
> That depends on what you mean by "library functions". Obviously you mean 
> a function in a library, but that's not really what matters here. The 
> important question is whether the source is available to the compiler. 
> It doesn't care where the compiled version ends up, because it doesn't 
> use it. It just needs to see the source.
> 
> So basically, for a library with declaration-only (no or incomplete 
> implementation) "headers" the answer is no, for libraries that ship with 
> full source (that's used to satisfy imports, so no .di modules) the 
> answer is yes. Just like with normal source files.

My question was general. C runtime functions, Phobos functions, any 
third party functions that come as `lib` files (either C or D).

-- 
serg.



More information about the Digitalmars-d mailing list