June 25, 2004 Object equivalence testing returns int, not bool | ||||
---|---|---|---|---|
| ||||
Given: Object a; bool tautology() { return a == b; } The error is "cannot implicitly convert int to bit." -- andy |
June 25, 2004 Re: Object equivalence testing returns int, not bool | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andy Friesen | 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
|
Copyright © 1999-2021 by the D Language Foundation