[fpc-devel]RangeChecking & NOT operator

Paul Yanchenko pusher at mailru.com
Wed Apr 10 12:18:08 CEST 2002


Good day for you, Peter!

Wednesday, April 10, 2002, 2:10:18 PM, you wrote:

PB> 1:   var
PB> 2:      b: byte;
PB> 3:   begin
PB> 4:   b := 0;
PB> 5:   b := NOT b;
PB> 6:   end.
PB> Switch range checking ON compile and run.
PB> You will get:
PB> Runtime error 201 at line 5
PB> But that's not the behavior I would have expected.
PB> I think this is a bug.

Yes, this is a bug and it is already fixed in snapshots. You may
download latest snapshot from
ftp://ftp.freepascal.org/pub/fpc/snapshot/

or wait for 1.0.6 release.

To Peter Vreman: That distribs what is placed on /dist/%os%-1.0.6/ is
release or pre-release (or beta)?

-- Someone who loves to program and enjoys being clever about it





More information about the fpc-devel mailing list