[fpc-devel] compiler bug?

DrDiettrich drdiettrich at compuserve.de
Fri Dec 31 13:13:09 CET 2004


Nico Aragón wrote:

> IIRC, any non-zero value is evaluated as "True" for a Boolean variable.

You should not guess about any implementation. Forcing out-of-range
values into strictly typed variables is a user bug, at the full risk of
(and shame on) that user.

Who's to blame when somebody applies FillChar on a pointer variable, and
the program consequently crashes?

>  else
>     WriteLn('Other');

This better should read:
	WriteLn('corrupt data space!!!'); Panic;

DoDi






More information about the fpc-devel mailing list