[fpc-devel] BOOL

Steve Hildebrandt Steve.Kassel at web.de
Sun Dec 14 17:55:13 CET 2014

Am 14.12.2014 um 17:21 schrieb waldo kitty:
> my understanding of TRUE and FALSE has always been
>   FALSE = 0
>   TRUE  = !FALSE
> we have, in some of our code, used this to determine a "truth level"
> returned by some routines... in other words, when we're detected TRUE
> we've then looked at the value of the variable returning TRUE...
> depending on that value, we then branched based on the level of TRUE...
> i don't know that we've done anything like this with any FPC code,
> though... the above was mostly in TP/BP stuffs and came in very very
> handy when it was implemented in our code...
If you want to do such a thing in ObjectPascal I would use ByteBool,
WordBool, ... insteadof the normal Boolean type.

mfg Steve Hildebrandt

More information about the fpc-devel mailing list