What's the current state of the art for module compilation?

monkyyy crazymonkyyy at gmail.com
Tue Nov 24 05:13:40 UTC 2026


On Tuesday, 24 November 2026 at 03:52:36 UTC, Walter Bright wrote:
> On 11/22/2026 9:55 PM, monkyyy wrote:
>> D uses C linkers, C linkers can not support templates, D has a 
>> pile of bandaids to pretend otherwise; you should not use 
>> bandaids as foundation.
>
> Linkers that support templates are a giant kludge. D is 
> designed to not need that.

Thats not a language-level detail, its a build-system-level 
detail, the compiler will obey and produce object files for 
whatever scheme I come up with.

And if I do something off the beaten path; which I have done with 
repl's, using template bugs for imperative metaprogramming, wasm 
and hotloading; you dont change the laws of physics an uninited 
template is a linking error.


More information about the Digitalmars-d mailing list