[fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Bo Berglund via fpc-pascal
I have been debugging a file analyzer program which is supposed to show a record if one clicks in the hex representation of the binary file content. I have a function which will grab the start and length of a record given the address clicked on. The file contains several different sections, basic

Re: [fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Sven Barth via fpc-pascal
Bo Berglund via fpc-pascal schrieb am Mi., 22. Dez. 2021, 16:08: > So I wonder if there is a value range limitation for the arguments inside > an in > command like: > if a in [x..y] then > The right side of the in-operator is a set constructor. And sets may only contain up to 256 values. (Though

Re: [fpc-pascal] Is there a range limitation for the in operator?

2021-12-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Dec 2021 17:07:55 +0100, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Mi., 22. Dez. 2021, 16:08: > >> So I wonder if there is a value range limitation for the arguments inside >> an in >> command like: >> if a in [x..y] then >> > >The right side of the in-o