[Issue 23972] class identity check is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 19 17:28:42 UTC 2023


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #4 from Dennis <dkorpel at live.nl> ---
I think the spec is wrong (or too vague) here. The interface object has a
slightly different address than the class object, so the pointers aren't equal.
`is` should be a simple bit compare, and not be doing casting logic for
classes.

--


More information about the Digitalmars-d-bugs mailing list