El 27/03/2012 22:20, Steven Schveighoffer escribió:
On Mon, 26 Mar 2012 17:25:07 -0400, Alvaro <[email protected]>
wrote:

Maybe it makes more sense that struct==struct applies == to each of
its fields. It would be the same as bitwise comparison for simple
primitive types, but would be more useful with other types such as
strings.

That's exactly what bug 3789 advocates for. Please vote up!

http://d.puremagic.com/issues/show_bug.cgi?id=3789

-Steve

BTW, today I encountered a problem that is probably related to this bug.

if you have a map with BigInt as key, it duplicates keys:

int[BigInt] a;
a[BigInt(3)] = 1;
a[BigInt(3)] = 2;
writeln(a);

prints

[3:2, 3:1]

Reply via email to