[fpc-devel] compiler bug?
peter green
plugwash at bircd.org
Thu Dec 30 23:13:52 CET 2004
I think the old saying goes garbage in garbage out.
range checking should probablly catch this sort of stuff but that has a high
performance penalty and is therefore usually disabled.
At the end of the day if you force out of range data into your booleans then
its your problem.
> -----Original Message-----
> From: fpc-devel-bounces at lists.freepascal.org
> [mailto:fpc-devel-bounces at lists.freepascal.org]On Behalf Of Jesus Reyes
> Sent: 30 December 2004 21:49
> To: FPC developers' list
> Subject: RE: [fpc-devel] compiler bug?
>
>
> --- peter green <plugwash at bircd.org> escribió:
> > you are forciblly putting an out of range value in a variable what
> > do you
> > expect to happen?
> >
> >
> >
>
> Of course the program was made to do that evident, but what happen
> when you find a procedure, for example:
>
> procedure doAorB(value: boolean);
> begin
> case value of
> true: doA;
> false: doB;
> end;
> end;
>
> one might think either doA or doB will executed, but the reality is
> that sometimes neither doA or doB will do.
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> La mejor conexión a internet y 25MB extra a tu correo por $100 al
> mes. http://net.yahoo.com.mx
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list