What's wrong with D's templates?

bearophile bearophileHUGS at lycos.com
Mon Dec 21 14:29:43 PST 2009


S:
>This isn't a bug.   This is how it is template code is supposed to work.<

It's not a bug, but a smarter compiler can try to reduce binary size conflating parts of asm code that are equal, to reduce the size of the resulting binary. It's a way to reduce one of the disadvantages of C++/D-style templates.

Bye,
bearophile



More information about the Digitalmars-d mailing list