digitalmars.D.bugs - Object equivalence testing returns int, not bool
- Andy Friesen <andy ikagames.com> Jun 25 2004
- Andy Friesen <andy ikagames.com> Jun 25 2004
Given:
Object a;
bool tautology() { return a == b; }
The error is "cannot implicitly convert int to bit."
-- andy
Jun 25 2004
Andy Friesen wrote:Given: Object a; bool tautology() { return a == b; } The error is "cannot implicitly convert int to bit."
.... replace that 'b' with an 'a' and you'll actually get that error. Whoops. -- andy
Jun 25 2004








Andy Friesen <andy ikagames.com>