1 matches bool, 2 matches long

deadalnix deadalnix at gmail.com
Mon Apr 29 05:30:05 PDT 2013


On Sunday, 28 April 2013 at 19:38:26 UTC, eles wrote:
> On Sunday, 28 April 2013 at 19:19:53 UTC, Walter Bright wrote:
>> On 4/27/2013 2:58 PM, jerro wrote:
>>> On Saturday, 27 April 2013 at 21:52:30 UTC, Walter Bright
>> To reiterate, history amply shows that if 'true' and 'false' 
>> are not there, then people will define them themselves, 
>> inconsistently, and the end result is not helpful to anybody.
>
>
> So basically, those are to be seen as simple #defines for 0 and 
> 1 and nothing more than that?
>
> I am for a boolean type that is only true and false.
>
> And, if so much needed conversion from int 0 and int non0 to 
> boolean is needed in if() and while(), then simply add ifz(), 
> ifnz(), whilez() and whilenz() to the language.
>
> (that is: ifzero(), infnonzero(), whilezero(), whilenonzero()).
>

This is plain useless as a cast is already inserted here.


More information about the Digitalmars-d mailing list