1 matches bool, 2 matches long

Paulo Pinto pjmlp at progtools.org
Sat Apr 27 15:17:46 PDT 2013


Am 27.04.2013 23:52, schrieb Walter Bright:
> On 4/27/2013 2:29 PM, Rob T wrote:
>> If bools are 1 bit ints, then why do we have 'true' and 'false' as
>> keywords?
>
> Because writing cast(bool)0 and cast(bool)1 is unappealing.
>

No, this brings us back into the realm of C and weak type checking.


More information about the Digitalmars-d mailing list