Bad AA behavior

BCS BCS at pathilink.com
Sat Dec 23 17:21:39 PST 2006


void main()
{
	byte[char[]] set;
	char[] it = "it".dup;
	set[it] = 0;
	assert("it" in set);	// pass
	it[0] = 'a';
	it[1] = 'a';
	assert("it" in set);	// fail
}


This can't be correct.

Anyone second that?


More information about the Digitalmars-d-bugs mailing list