[fpc-devel] [Suggestion] Enumeration range-check intrinsic

J. Gareth Moreton gareth at moreton-family.com
Wed Jul 3 22:54:19 CEST 2019


So is the "(Value as TEnumType)" and "if (Value is TEnumType)" 
acceptable solutions to do a range check then the programmer absolutely 
needs it?  What do the administrators feel?  Not to be the bearer of bad 
news, but I feel like there's some disagreement.

Note that things like the range check on case blocks will not be 
modified and don't need to be.

Gareth aka. Kit


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the fpc-devel mailing list