[fpc-pascal] Set size limit
Ewald
ewald at yellowcouch.org
Mon Mar 11 23:13:49 CET 2013
Once upon a time, Mark Morgan Lloyd said:
> No, because the elements in a set are dictated by their position. A
> set that can contain anything between 0 and 256 elements occupies 8
> bytes in memory with the (bit representing the) 0 element at one end
> and the (bit representing the) 256 element at the other, a set to
> contain up to (say) 257 elements would require more space and that's
> not supported.
>
Probably a typo, but 8 bit * 8 bytes = 64 elements. So I suppose you
mean `[...] occupies 32 bytes in memory [...]`?
Just so nobody gets confused :-)
--
Ewald
More information about the fpc-pascal
mailing list