[fpc-devel] is not operator

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Sep 11 09:00:47 CEST 2026


Hi,

I would like to implement the "is not" operator in fpc. It was 
introduced in Delphi 13.

For example:

if Obj is not TStringList then ...

It has the same precedence as "is". Since after "is" there can be only 
an instance, class, interface, etc, and "not" is an all mode keyword, 
I'm not aware of any conflicts or ambiguities - aka it cannot break any 
existing code.

Ok?

Mattias



More information about the fpc-devel mailing list