Templates and stringof...

David Nadlinger see at klickverbot.at
Fri Aug 3 14:19:07 PDT 2012


On Friday, 3 August 2012 at 21:02:22 UTC, Era Scarecrow wrote:
>  Now, how do I get the template's stringof to print out 
> 'i_num.i' and not 'i'?

You don't. Using .stringof in conjunction with string mixins is 
The Wrong Thing (tm) in virtually all cases.

What do you want to achieve? Why can't you pass a string instead?

David




More information about the Digitalmars-d-learn mailing list