[Issue 18541] comparison `==` of two typeid() should always be rewritten as a "is"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 2 11:00:45 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18541
Basile B. <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #6 from Basile B. <b2.temp at gmx.com> ---
(In reply to Steven Schveighoffer from comment #5)
> Note that == will shortcut and return true if the two instances are the same
> object.
With someone yesterday we have verified that it's really not the case. In a
specific hotspot, using "==" instead of "is" made something running in 7
minutes instead of 4 !
This is exactly why i opened this issue but unfortunately i understand now that
it's not applicable, we just take care to use "is".
--
More information about the Digitalmars-d-bugs
mailing list