AA reference semantics

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Mar 13 21:41:08 PDT 2012


Is this a bug?

	int[string] aa, bb;
	bb = aa;
	aa["abc"] = 123;
	assert(bb["abc"] == 123);	// assertion fails

The following works:

	int[string] aa, bb;
	aa["def"] = 456;
	bb = aa;
	aa["abc"] = 123;
	assert(bb["abc"] == 123);	// OK


T

-- 
Don't drink and derive. Alcohol and algebra don't mix.


More information about the Digitalmars-d mailing list