[fpc-devel] is not operator

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Sep 11 16:31:36 CEST 2026



On 9/11/26 12:27, Adriaan van Os via fpc-devel wrote:
> 
> On 11/09/2026 12:17, Ondrej Pokorny via fpc-devel wrote:
>> On 9/11/2026 11:44 AM, Bart via fpc-devel wrote:
>>> On Fri, Sep 11, 2026 at 9:09 AM Mattias Gaertner via fpc-devel
>>> <fpc-devel at lists.freepascal.org> wrote:
>>>> if Obj is not TStringList then ...
>>> Semantically this would be the same as "not (Obj is TStringList)"?
>>> What would be the advantages of this new construct?
>>
>> Delphi compatibility.
> Then I suggest to implement it for Delphi mode only.
Although I am often unhappy with Embarcaderos syntax choices, the "is 
not" I like. It looks Pascal, does not bite existing code, is easier to 
read, and is easy to implement.

So I would like to see it any mode that supports "is".


Mattias



More information about the fpc-devel mailing list