qualified type names for mixins

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 15 15:59:23 PDT 2017


On Thursday, 15 June 2017 at 22:36:56 UTC, Jonathan Marler wrote:
> Doesn't work with eponymous templates, like std.traits.Flag.  
> For example, make this code work:

That uses `.stringof` which means it is useless for anything 
except informational printing.

Post the code you are actually doing (not writeln stuff, with 
mixin) and I'll show you how to do it right.

> When you mixin the type, you need a "string', T is not a 
> string, it's an alias to a type.

But "T" is a string....


More information about the Digitalmars-d mailing list