yebblies <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |
         Resolution|                            |INVALID

--- Comment #1 from yebblies <> 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\");";

This is not a bug, variables cannot be used at compile time.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to