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

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2144 - 'is' is defined to be the same as '==' for non-class and non-array types, but does not call opEquals
Summary: 'is' is defined to be the same as '==' for non-class and non-array types, but...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: spec
Depends on:
Blocks:
Reported: 2008年06月08日 20:59 UTC by Jarrett Billingsley
Modified: 2014年02月24日 15:32 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Jarrett Billingsley 2008年06月08日 20:59:54 UTC
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 Walter Bright 2008年06月22日 18:59:19 UTC
Fixed dmd 1.031 and 2.015


AltStyle によって変換されたページ (->オリジナル) /