opEquals needs to return bool
Janice Caron
caron800 at googlemail.com
Fri May 16 16:08:47 PDT 2008
On 16/05/2008, Robert Fraser <fraserofthenight at gmail.com> wrote:
> Instead of having a separate type, why not just use a (u)byte in those
> cases? That's gotta be rarer than the cases where you'd want to use an int
> for a bool, so while it's the same problem, the incidence of the problem is
> reduced
Fair enough.
OK, let's just keep it simple. Let bools be int-sized, and let
opEquals return bool.
More information about the Digitalmars-d
mailing list