qualified type names for mixins

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 15 14:54:44 PDT 2017


On Thursday, 15 June 2017 at 21:26:38 UTC, Jonathan Marler wrote:
> The common use case is when you'd like to mixin a type when it 
> is passed to a template.

That's also the most common wrong case. If it is passed to a 
template, you have a local name that you should use because it 
will work despite import or privacy restrictions that would break 
with the full name. So....

> It uses T.stringof in some cases

...just use T. Drop the stringof and you'll find it much easier 
and correct.


More information about the Digitalmars-d mailing list