Re: [fpc-pascal] How to increase the range ckeck limit?
On Sun, Jul 5, 2015 at 11:27 AM, DaWorm daw...@gmail.com wrote: What do you mean, your question is not clear ? Since r is set to 256, the [0..r] probably doesn't work, even with the range check turned off. So I assume he's really asking for larger sets. Jeff Exactly. =) And the same behaviour occurs on Delphi too. Thank you! -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to increase the range ckeck limit?
On Sat, 4 Jul 2015, silvioprog wrote: Hello, Is there any compiler switch to increase the range limit check for operations like this?: {$R-} var r: SmallInt = 256; i : SmallInt; begin i := 10; if i in [0..r] then WriteLn('OK') else WriteLn('Fail'); end; What do you mean, your question is not clear ? Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] How to increase the range ckeck limit?
What do you mean, your question is not clear ? Since r is set to 256, the [0..r] probably doesn't work, even with the range check turned off. So I assume he's really asking for larger sets. Jeff ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] How to increase the range ckeck limit?
Hello, Is there any compiler switch to increase the range limit check for operations like this?: {$R-} var r: SmallInt = 256; i : SmallInt; begin i := 10; if i in [0..r] then WriteLn('OK') else WriteLn('Fail'); end; Thank you! -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal