On 02.07.2017 18:49, Jonas Maebe wrote:
I would be in favour of a new intrinsic.
I have to admit that for some usages I would prefer a compiler intrinsic that returns False instead of raising an exception. Something like:
function TryIntToEnum<T: type of enum>(const AValue: Integer; var AEnumValue: T): Boolean;
Ondrej _______________________________________________ fpc-devel maillist - firstname.lastname@example.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel