[D1] assert failure expression.c

Joel Christensen joelcnz at gmail.com
Sun Oct 10 01:29:46 PDT 2010


Looks like there's no problem to me, except with the code.

char[] foo()
{
	char[2] res = "1 ";
	res[1] = ";"; // should be res[1] = ';';
	return res;
}

I don't think you can have an incomplete mixin.


More information about the Digitalmars-d-learn mailing list