BigInt bool assign
Derek
ddparnell at bigpond.com
Sat Dec 24 08:11:40 PST 2011
On Sat, 24 Dec 2011 21:33:33 +1100, Don <nospam at nospam.com> wrote:
>
> I think stuff like
> int z += x > y;
> should ideally require a cast. That's a crazy operation.
Another issue is that it is a mere convention that C uses 1 to represent
TRUE and 0 to represent FALSE. There are some languages that use 0 for
FALSE (all bits off) and -1 for TRUE (all bits on).
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d
mailing list