[fpc-pascal] Is there a range limitation for the in operator?
Bo Berglund
bo.berglund at gmail.com
Wed Dec 22 19:30:30 CET 2021
On Wed, 22 Dec 2021 17:07:55 +0100, Sven Barth via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
>Bo Berglund via fpc-pascal <fpc-pascal at lists.freepascal.org> 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 I don't know right now whether that is
>always counted from 0 or not)
>
Ok, thanks. Figured that it was something like that.
So I have to stack several if conditions instead.
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list