[fpc-devel] is not operator
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Sep 16 07:13:35 CEST 2026
On 9/16/26 06:59, Kai Burghardt via fpc-devel wrote:
> Hola,
>
> On 2026‑09‑15 22:19:32 +0200, Sven Barth via fpc-devel wrote:
>> considered equally impactful. These operator reorderings should be kept
>> separate from potential other changes so mode switches like
>> "DelphiSyntacticSugar" or "DelphiSlang" are not a good idea.
>> "ReorderedOperators" would be more precise.
>
> May I remind you that `not` is a unary operator that has highest
> precedence. Thus `MyObject is not MyClass` is grammatically the
> same as `MyObject is (not MyClass)`. Therefore what is the type
> of `MyClass` in this expression? It is not a `Boolean`, I guess.
It was equivalent to "MyObject is (not MyClass)".
With the modeswitch it is "not (MyObject is MyClass)".
Mattias
More information about the fpc-devel
mailing list