[fpc-devel] Dangerous optimization in CASE..OF

Ondrej Pokorny lazarus at kluug.net
Sat Apr 14 11:02:49 CEST 2018


On 14.04.2018 10:39, Thorsten Engler wrote:
> How about following the same schema as with classes?
>
> If 1 is TMyEnum then
>    //use hard cast here

Yes, that is reasonable as well and it will be easier to implement than 
the TryIntToEnum/IntToEnum intrinsics for me.

Ondrej



More information about the fpc-devel mailing list