Few ideas to reduce template bloat

Walter Bright newshound1 at digitalmars.com
Fri Mar 26 13:17:20 PDT 2010


bearophile wrote:
> Walter Bright:
>> Because of separate compilation, that can't be done with the compiler in the 
>> general case. The linker can, though.
> 
> LDC is able to do it already! I don't need 100% general solutions.

Are you sure LDC isn't doing it at the link step?

Regardless, if you implement a half solution in the compiler, and then a full 
solution in the linker, you've doubled your effort for the same result. This may 
be a practical solution, however, if you desire to work with any linker, 
including ones you have no control over.



More information about the Digitalmars-d mailing list