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



_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to