[fpc-devel] *** GMX Spamverdacht *** Re: Dangerous optimization in CASE..OF

Ondrej Pokorny lazarus at kluug.net
Sat Apr 14 15:27:53 CEST 2018


On 14.04.2018 15:16, Ozz Nixon wrote:
> following the grammar, I would suggest “in” when trying to do what you want, not “is”.
>
> if a in 3..10 then begin

You can overload the IN operator: 
https://www.freepascal.org/docs-html/ref/refse104.html#x213-23500015.6

According to Jonas, this could make trouble: 
http://lists.freepascal.org/pipermail/fpc-devel/2017-July/038029.html

IS, however cannot be overloaded.

Ondrej



More information about the fpc-devel mailing list