Why not mixin "int a;" ??

Tomasz Sowiñski tomeksowi at gmail.com
Sun Aug 24 15:42:53 PDT 2008


Jarrett Billingsley Wrote:

> mixin foo;
> 
> This is now grammatically ambiguous.  If foo is a const char[], then it's a 
> string mixin.  If foo is a template, then it's the same as "mixin foo!();". 
> This could be disambiguated later, but.. 
> 

Is there a difference in what happens when you mixin a template and a string?
I still don't see why this distinction is necessary.

Tomek



More information about the Digitalmars-d-learn mailing list