[fpc-devel]Delphi incompatibility again!

Marco van de Voort marcov at stack.nl
Mon Apr 2 16:29:18 CEST 2001


> On Mon, 2 Apr 2001, Marco van de Voort wrote:
> 
> > > The value of true in a boolean is undefined. All checks for booleans are done using checks
> > > for zero or not zero.
> >
> > No. They can also get compared to other booleans, and those types exist for
> > C compability, and could be compared with external C vars ?
> 
> C has no boolean type. And C++'s bool is just a dirty hack (implicit type
> casting between int and bool is perfectly possible).

I know. But I thought those types were to declare C's  short,-,long bool as
external.

Therefore they have the same values. Why would you otherwise need those
types at all?




More information about the fpc-devel mailing list