[fpc-devel] Can no longer convert Set of Enum to Integer (on latest SVN ... as of 5-10 minutes ago)
Den
cyraid at gmail.com
Thu Jun 5 02:38:51 CEST 2014
Hello all,
As the subject implies, code that has previously ran:
-----------
Type TSomeEnumSet = Set OF (seOne, seTwo, seThree, seFour);
Var SomeSet : TSomeEnumSet;
Begin
Writeln(Integer(SomeSet) );
End.
-----------
Results in: Error: Illegal type conversion: "TSomeEnumSet" to "LongInt"
-----------
This should be possible (in the documentation for a set " The compiler
stores small sets (less than 32 elements) in a Longint"), what has
changed? (using latest SVN as of 5-10 minutes ago :p)
- Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140604/078e76de/attachment.html>
More information about the fpc-devel
mailing list