1 matches bool, 2 matches long
Paulo Pinto
pjmlp at progtools.org
Fri Apr 26 06:26:13 PDT 2013
On Friday, 26 April 2013 at 08:00:28 UTC, Walter Bright wrote:
> On 4/26/2013 12:07 AM, Maxim Fomin wrote:
>> Regarding bool type as integer type is C atavism and should be
>> abandoned.
>
> There's a very loooong history of 0 being regarded as false and
> 1 as true - it goes well beyond C.
>
Assembly, PL/I, Algol, ...? Just asking as a language geek.
Personally, given my strong typing background, I dislike the
automatic conversion to booleans.
Even my C code has explicit comparisons for NULL pointers,
instead of relying in implicit conversions.
--
Paulo
More information about the Digitalmars-d
mailing list