http://d.puremagic.com/issues/show_bug.cgi?id=4428
yebblies <yebbl...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebbl...@gmail.com Resolution| |INVALID --- Comment #1 from yebblies <yebbl...@gmail.com> 2010-07-05 06:07:22 PDT --- String mixins only work when the string is known at compile time. Initializing from a variable won't work because the value is not known until run time. String literals are known at compile time, and the function call is evaluated using ctfe. Maybe what you're looking for is enum? void main() { enum string str = "writeln(\"hello world\");"; mixin(str); } This is not a bug, variables cannot be used at compile time. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------