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" <dgasp...@gmail.com>
To: "FPC-Pascal users discussions" <fpc-pascal@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@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Attachment: ubigset.7z
Description: Binary data

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to