[fpc-devel] is not operator
Michael Van Canneyt
michael at freepascal.org
Fri Sep 11 10:04:32 CEST 2026
On Fri, 11 Sep 2026, Mattias Gaertner via fpc-devel wrote:
> 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?
As far as I can see, it cannot break any existing code. So yes, OK.
Michael.
More information about the fpc-devel
mailing list