[Issue 288] type of opEquals
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 17 04:16:47 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=288
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
------- Comment #1 from smjg at iname.com 2006-08-17 06:16 -------
AIUI all expressions involving == and != are supposed to be of type bool.
The fact that Object.opEquals is of type int is another matter. See
digitalmars.D.bugs:7933, "int opEquals(Object), and other legacy ints". Walter
claimed it's "for efficiency reasons", but the cited efficiency reasons don't
work here for as long as it's opEquals rather than opNotEquals.
--
More information about the Digitalmars-d-bugs
mailing list