you are forciblly putting an out of range value in a variable what do you
expect to happen?


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jesus Reyes
> Sent: 30 December 2004 19:37
> To: lista de fpc-devel
> Subject: [fpc-devel] compiler bug?
>
>
> I have doubts about this so I made a small test, what I want to know
> is if a true boolean value be internally be represented by any value
> different from 0.
>
> program problem;
> var
>   B: boolean;
> begin
>   FillChar(B, SizeOf(B), 255);
>   case b of
>     true: WriteLn(True);
>     false: WriteLn(False);
>     else WriteLn('OTHER');
>   end;
> end.
>
> I'm using : Free Pascal Compiler version 1.9.5 [2004/12/29] for i386
> under linux.
>
> the program output: OTHER, it's a compiler bug?
>
> _________________________________________________________
> 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  -  [email protected]
> http://lists.freepascal.org/mailman/listinfo/fpc-devel


_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to