On 29 Jan 2010, at 12:39, Bart wrote:

var
 W: Word;
 U: UInt64;

{$R-} //range checkin off

begin
 U := $0000000100000000;
 W := U; // or W := Word(U);
end.

I know that the value that i assigned to W is "wrong" (and I can
handle that), but does it trash memory or cause other serious
problems?

The only problem that can occur is a range check run time error in case range checking is enabled.


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

Reply via email to