[fpc-pascal] Set size limit

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Sun Mar 10 18:20:21 CET 2013


Juha Manninen wrote:

>> 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.
> 
> This is one area where FPC could actually improve things.
> The 1 byte limit is purely historical. There are no 8-bit CPUs
> supported by FPC that would justify it.
> 
> I am annoyed by some LCL bugs which are there only for Delphi compatibility.
> This issue is similar. This kind of artificial limitation could easily be fixed.

Without wanting to cause upset, before you make statements like that I 
think you could /really/ do with checking how many bits fit in a byte :-)

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list