Our template emission strategy is broken
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Wed Nov 11 17:48:59 PST 2015
On Wednesday, 11 November 2015 at 18:06:22 UTC, rsw0x wrote:
> On Wednesday, 11 November 2015 at 13:56:51 UTC, Martin Nowak
> wrote:
>> On Wednesday, 11 November 2015 at 13:47:27 UTC, Johannes Pfau
>> wrote:
>>> I think we should really fix these issues, working separate
>>> compilation is very important.
>>
>> No, it's not. Separate compilation is C++-ishly slow by design
>> (b/c all dependencies get imported over and over again, just
>> like headers).
>> We should endorse compiling small (rather independent)
>> packages to static/shared libraries.
>
> This would be great if cross-module inlining actually worked.
> pragma(inline,true) doesn't even work across modules afaik
It does if you compile by package with something else than DMD,
because DMD does inlining in some very weird ways.
More information about the Digitalmars-d
mailing list