Bug 2144 – 'is' is defined to be the same as '==' for non-class and non-array types, but does not call opEquals

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-06-08T20:59:00Z
Last change time
2014-02-24T15:32:39Z
Keywords
spec
Assigned to
bugzilla
Creator
jarrett.billingsley

Comments

Comment #0 by jarrett.billingsley — 2008-06-08T20:59:54Z
Exactly what the topic says. So if you have two structs "a" and "b", "a is b" will perform a "primitive" bit-for-bit equality test, while "a == b" will call overloaded opEquals. Either the spec should mention this, or this is a bug.
Comment #1 by bugzilla — 2008-06-22T18:59:19Z
Fixed dmd 1.031 and 2.015