Am 02.01.2019 um 11:06 schrieb Bart:
> On Wed, Jan 2, 2019 at 9:44 AM Martok <list...@martoks-place.de> wrote:
> 
>> - If a case statement on an ordinal does not contain labels for all values of
>> the ordinal, and no else statement is given, raise a new warning (W6059). 
>> This
>> is actually defined as an error in ISO7185 and a dynamic-violation in 
>> IEC10206.
> 
> So now I will have to add a useless else statement for every case
> statement that uses e.g. integers, or rewrite them to if..then..else
> or if value in [...]?

Actually, in a perfect world you would use a suitable range type.

> And how will I mage this when my code runs on different architecture
> where the full range of the ordinal may differ?
> 

Which ordinal changes in FPC its range depending on the architecture?
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to