www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Object equivalence testing returns int, not bool

reply Andy Friesen <andy ikagames.com> writes:
Given:

     Object a;
     bool tautology() { return a == b; }

The error is "cannot implicitly convert int to bit."

  -- andy
Jun 25 2004
parent Andy Friesen <andy ikagames.com> writes:
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