[fpc-pascal] Set limitations

Hairy Pixels genericptr at gmail.com
Sat Jan 11 14:57:51 CET 2025


 On Jan 11, 2025 at 8:17:33 PM, Hairy Pixels <genericptr at gmail.com> wrote:

> I was curious, is there any practical limit on the size of a set (32 bits
> and 256 values) and why they couldn’t be 64 bit or any other arbitrary
> size? The floor seems to be 4 bytes too but why not allow smaller sizes to
> save memory? Perhaps just a historical artifact but I was curious.
>

Sorry that was wrong, the biggest size is 32 bytes and the largest size of
an enum is 256 elements. I was talking about sets of enums also if that wasn
’t clear.

I still don’t see it’s possible to make a set which is smaller than 4
bytes, even in the 0..7 range.

Regards,
    Ryan Joseph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250111/39396d72/attachment.htm>


More information about the fpc-pascal mailing list