[fpc-devel] is not operator
Kai Burghardt
wiz at KaiBurghardt.de
Wed Sep 16 06:59:57 CEST 2026
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.
--
Sincerely yours,
Kai Burghardt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20260916/05228dc6/attachment-0001.sig>
More information about the fpc-devel
mailing list