On 13.04.2018 14:08, Sven Barth via fpc-devel wrote:
Ondrej Pokorny <laza...@kluug.net <mailto:laza...@kluug.net>> schrieb am Fr., 13. Apr. 2018, 12:52:

    I introduced the AS operator for enumerations in
    https://bugs.freepascal.org/view.php?id=33603


What about enums with holes?

No problem because Low() and High() work with these enums as well. See the test case project I attached to the bug report - it has a test with such an enum.

Also for constants there could be a compile time check.

That's true. You are welcome to improve the patch :)

Ondrej

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to