.di files have implementation??

Andrew Wiley wiley.andrew.j at gmail.com
Sat Oct 22 19:57:21 PDT 2011


On Sat, Oct 22, 2011 at 9:49 PM, Andrej Mitrovic <andrej.mitrovich at gmail.com
> wrote:

> It's because the function is small enough to be inlineable, you can't
> inline it if you've only got the prototype in the header file. So it's
> optimizations at play.
>

Interestingly, it looks like GNU ld should be able to inline functions as
part of link time optimizations, which would make this unnecessary on
platforms where DMD uses ld. Probably not worth looking into right now, but
if di files become more used in the future, this sort of thing could
probably go away (except on Windows, but the linker situation there is
probably one of the most problematic parts of the D toolchain).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20111022/be616428/attachment.html>


More information about the Digitalmars-d-learn mailing list