[Issue 18615] Rebindable!A doesn't use class A's opEquals (returns a is b instead)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 29 09:08:59 UTC 2018


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

--- Comment #4 from Simon Na. <eiderdaus at gmail.com> ---
I've got a PR for Phobos ready at:
https://github.com/dlang/phobos/pull/6370

The root cause was that union equality is always bitwise. The compiler issue is
15828, and the consensus seems that implicit union comparison should be a
compiler error:
https://issues.dlang.org/show_bug.cgi?id=15828

My PR for 18615 works independently of 15828 because I compare the class
reference inside the union explicitly with == against rhs's class reference.

> Cool! Please let us know if you hit any road bumps etc. ;-)

Thanks, it's been smooth sailing so far!

-- Simon

--


More information about the Digitalmars-d-bugs mailing list