mixin alias

Aarti aarti at interia.pl
Sun Dec 16 12:04:19 PST 2007


Derek Parnell pisze:
> Is there any reason why the alias template parameter cannot be a literal?
> 
> 
> template Foo(alias b) {
>    int X = b;
> }
> 
> void main() {
>   int y = 4;
>   mixin Foo!(y);  // This is okay
>   mixin Foo!(4);  // This fails to compile 
>    // "mixin Foo!(4) does not match any template declaration"
> }
> 
>        

IMHO should work...

Bug?

BR
Marcin Kuszczak
(aarti_pl)


More information about the Digitalmars-d-learn mailing list