aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Mixins in mixins... in mixins #532

Closed CZDanol closed 10 years ago

CZDanol commented 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?

aBothe commented 10 years ago

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.

aBothe commented 10 years ago

Use "mixin mix_" ~ mix ~ ";" - then, it'll work.