On Wednesday, 24 October 2012 at 19:28:36 UTC, Andrej Mitrovic
wrote:
On 10/24/12, Andrej Mitrovic <[email protected]> wrote:
On 10/24/12, Mehrdad <[email protected]> wrote:
Could someone explain what's going on? Thanks!
Struct fields are compared by address by default if no
opEquals is
defined. http://d.puremagic.com/issues/show_bug.cgi?id=3789
Well I mean for reference types. Or something like that. To put
it bluntly: It's brokeeen.
Yeah, and my attempts to get around it don't seem to help:
auto a = [1:1], b = [1:1];
writeln(a == b); // true
writeln(a in [a:0]); // null