[fpc-devel] enums and integer auto conversion

Vincent Snijders vincent.snijders at gmail.com
Mon Sep 10 20:18:52 CEST 2012


2012/9/10 Den Jean <Den.Jean at telenet.be>:
> Hi,
>
> As described in
> http://bugs.freepascal.org/view.php?id=22797
>
> fpc 2.7.1 does not allow anymore to pass an enum
> to a function expecting integers.
>
> Note that there has always been a
> {$MINENUMSIZE 4} in qt4.pas
>
> Is this intended behaviour ? I really hope it is not.
>
> I cannot define the type of the parameter
> as the enumtype because the expected values
> are either the enum or combinations of the enum (or)

If it is the combination of enum, then the type of the parameter is set of enum.

Vincent



More information about the fpc-devel mailing list