[fpc-pascal] is not and not in
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Sep 23 11:17:28 CEST 2026
Hi all,
fpc main now supports "not in" and "is not":
They can be enabled with $modeswitch ReorderedOperators and are enabled
by default in mode delphi and delphiunicode.
Examples:
if aControl is not TForm then ...
// instead of
if not (aControl is TForm) then ...
if FormStyle not in [fsMDIForm, fsMDIChild] then ...
// instead of
if not (FormStyle in [fsMDIForm, fsMDIChild]) then ...
Mattias
More information about the fpc-pascal
mailing list