[fpc-pascal] Set size limit

Marco van de Voort marcov at stack.nl
Sun Mar 10 14:45:56 CET 2013


In our previous episode, Graeme Geldenhuys said:
> On 2013-03-09 20:52, Daniel Gaspary wrote:
> > 
> > The problem seems to be that TMyEnum has more than 256 elements.
> > Can I specify such Set with some compiler option ?
> 
> No.  As far as I understand, sets are stored in 1 byte internally - as
> binary values. 256 is the max number of elements (bit values) it can
> hold in a byte.

Sets are up to 32-byte (256bits), enums can be up to 32-bit.



More information about the fpc-pascal mailing list