<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Am Mi., 2. Jan. 2019, 11:08 hat Bart <<a href="mailto:bartjunk64@gmail.com">bartjunk64@gmail.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Jan 2, 2019 at 9:44 AM Martok <<a href="mailto:listbox@martoks-place.de" target="_blank" rel="noreferrer">listbox@martoks-place.de</a>> wrote:<br>
<br>
> - If a case statement on an ordinal does not contain labels for all values of<br>
> the ordinal, and no else statement is given, raise a new warning (W6059). This<br>
> is actually defined as an error in ISO7185 and a dynamic-violation in IEC10206.<br>
<br>
So now I will have to add a useless else statement for every case<br>
statement that uses e.g. integers, or rewrite them to if..then..else<br>
or if value in [...]?<br>
And how will I mage this when my code runs on different architecture<br>
where the full range of the ordinal may differ?<br>
<br>
Please no (to this part of the proposal).<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Warnings can always be disabled by {$warn NR off} or - I believe - a command line switch. </div><div dir="auto">One could also decide to have it be a default off warning for the non ISO modes (FPC, Delphi, MacPas) like some of the string conversion warnings. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>