[Issue 13890] Comparing arrays within structs results in an assignment.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Dec 25 06:04:14 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13890

--- Comment #3 from b.j.dejong at hotmail.com ---
Figured out what the actual problem seems to be.

The bug doesn't happen during array comparison but during struct
initialisation. All structs apparently get the same array instead of new ones.
When changing the array initialisation to the constructor the bug goes away.

--


More information about the Digitalmars-d-bugs mailing list