<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 13.04.2018 14:08, Sven Barth via
fpc-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFMUeB_jhbjk8_OsLZ0xR0AcaNJBQFvWm6Tumyt0xHaS0+rKAg@mail.gmail.com">
<div dir="auto">
<div>
<div class="gmail_quote">
<div dir="ltr">Ondrej Pokorny <<a
href="mailto:lazarus@kluug.net" moz-do-not-send="true">lazarus@kluug.net</a>>
schrieb am Fr., 13. Apr. 2018, 12:52:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">I introduced the AS
operator for enumerations in <a
class="m_7860075233186958794moz-txt-link-freetext"
href="https://bugs.freepascal.org/view.php?id=33603"
target="_blank" rel="noreferrer"
moz-do-not-send="true">https://bugs.freepascal.org/view.php?id=33603</a></div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">What about enums with holes?</div>
</div>
</blockquote>
<br>
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.<br>
<br>
<blockquote type="cite"
cite="mid:CAFMUeB_jhbjk8_OsLZ0xR0AcaNJBQFvWm6Tumyt0xHaS0+rKAg@mail.gmail.com">
<div dir="auto">
<div dir="auto">Also for constants there could be a compile time
check.</div>
</div>
</blockquote>
<br>
That's true. You are welcome to improve the patch :)<br>
<br>
Ondrej<br>
<br>
</body>
</html>