Trying to use Mir ion, its a perfect example of the failure of D's attribute system

Walter Bright newshound2 at digitalmars.com
Fri Jan 20 20:26:22 UTC 2023


On 1/20/2023 9:13 AM, H. S. Teoh wrote:
> And 3.: it causes the body of `process` to be duplicated across multiple
> instantiations, even if the only difference in DG is in attributes,
> i.e., the generated code is 100% identical.  This leads to template
> bloat.

This is a general issue with templates. Some linkers are able to remove 
duplicates. The compiler could be enhanced for it, too. It's not a language problem.


More information about the Digitalmars-d mailing list