[fpc-pascal] Set size limit

Gerhard Scholz gs at g--s.de
Mon Mar 11 19:42:58 CET 2013


Here is a unit that could be useful.

Works with pentium and Win32; not tested with other CPUs or operating 
system.

I hope you have 7zip, or I will create a zip file.

Greetings

Gerhard

----- Original Message ----- 
From: "Daniel Gaspary" <dgaspary at gmail.com>
To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
Sent: Saturday, March 09, 2013 9:52 PM
Subject: [fpc-pascal] Set size limit


> Hi,
>
>   I am trying to create a Set Type...
>
>   TMyEnum = (me1, me2, me3); // more than 500 elements
>
>   TMySet = set of TMyEnum;
>
> ...but I get the following error:
>
> "Error: illegal type declaration of set elements" [1]
>
> The problem seems to be that TMyEnum has more than 256 elements.
>
> Can I specify such Set with some compiler option ?
>
> My fpc is pre 2.6, any change on new versions concerning Sets limits?
>
> Thanks.
>
> [1] A more specific message would help too. :)
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubigset.7z
Type: application/octet-stream
Size: 4399 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130311/7d309bc3/attachment.obj>


More information about the fpc-pascal mailing list