Closed CZDanol closed 10 years ago
Hey, my code uses some quite complicated mixin stuff like
mixin template mix_test() { int a; }
class C { enum mix = "test"; mixin( "mixin mix_" ~ mix ); }
Do you think it would be possible to add parsing support for this?
In theory(tm), this should work already -- it's probably a bug related to unclearly specified scoping where it doesn't know where to look up mix_test at the end.
Use "mixin mix_" ~ mix ~ ";" - then, it'll work.
"mixin mix_" ~ mix ~ ";"
Hey, my code uses some quite complicated mixin stuff like
mixin template mix_test() { int a; }
class C { enum mix = "test"; mixin( "mixin mix_" ~ mix ); }
Do you think it would be possible to add parsing support for this?