[D1] assert failure expression.c
e at ee.com
Sat Oct 9 10:18:31 PDT 2010
Incomplete mixin expression + char to char assignment = crash :)
char res = "1 ";
res = ";"; // should be a char
int i = mixin( foo() ); // incomplete mixin expression
Assertion failure: '0' on line 1342 in file 'expression.c'
And while you are reading this, could you maybe tell me why this needs a .dup?
char res = "int i=0;";
return res.dup;// without: main.d(/here/): Error: escaping reference to
mixin ( bar() );
More information about the Digitalmars-d-learn