[fpc-devel] is not operator

Hairy Pixels genericptr at gmail.com
Fri Sep 11 15:41:09 CEST 2026


 far more common for me is: if not (xxx in yyy) then. By the same logic it
should be: if xxx not in yyy then

On Sep 11, 2026 at 2:00:47 PM, Mattias Gaertner via fpc-devel <
fpc-devel at lists.freepascal.org> 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?
>
> Mattias
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20260911/950cf5d7/attachment.htm>


More information about the fpc-devel mailing list