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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel