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

Sven Barth pascaldragon at googlemail.com
Wed Dec 22 17:07:55 CET 2021


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)

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20211222/23eb5c5d/attachment.htm>


More information about the fpc-pascal mailing list