[fpc-devel] BOOL
Adriaan van Os
fpc at microbizz.nl
Mon Dec 15 10:03:30 CET 2014
Michael Schnell wrote:
> Now, in C (which does not feature a native boolean type, but boolean
> operators) a *decent* boolean decision is e.g. "if (a)". But the silly C
> programmer did "if (a ==TRUE). Now the boolean variable "a" imported
> from Delphi was presumed as FALSE instead of TRUE.
An interesting example ! It clearly shows the dangers of a language that isn't strictly typed and
thus doesn't have implicit type conversions.
Regards,
Adriaan van Os
More information about the fpc-devel
mailing list