A template for method forwarding?

Christopher Wright dhasenan at gmail.com
Fri Dec 12 19:19:47 PST 2008


Denis Koroskin wrote:
> I don't know if it is a good thing to have. Do you understand how much 
> bigger executable size becomes?

If the .stringof is only used in templates, then there is no increase -- 
except insofar as you are able to do more with D, which allows you to 
build more and possibly larger applications.

If it's used in CTFE functions, that can be an issue. In the average 
case, you've got string constants increased in size by maybe a factor of 
four (ballpark guess). Probably not more than a factor of ten. I'm not 
sure what portion of a DMD binary, on average, is devoted to type name 
string constants.



More information about the Digitalmars-d mailing list