[fpc-devel] BOOL

Adriaan van Os fpc at microbizz.nl
Mon Dec 15 07:58:07 CET 2014


Michael Van Canneyt wrote:
>> Well, true is -1 and false 0 :) I wonder if we should forbid it in fpc 
>> mode ...
> 
> We should. IMHO ByteBool is unsigned so >=0...

I suggest to change the internal value of TRUE to 1 for all boolean types, except in mode delphi. 
Then "for b:= false to true" works as one would except.

Regards,

Adriaan van Os




More information about the fpc-devel mailing list