Delphi mode
This mode is selected by the $MODE DELPHI switch. It tries to emulate, as closely as possible, the behavior of Delphi 4 till recent versions of Delphi . On the command line, this mode is selected by the -Mdelphi switch.
You cannot use the address operator to assign procedural variables.
A forward declaration does not have to be repeated exactly the same by the implementation of a function/procedure. In particular, you can omit the parameters when implementing the function or procedure.
Ansistrings are default, this means that
$MODE DELPHIimplies an implicit{$H ON}.Overloading of functions only allowed with
Overloadmodifier.Inline code is allowed: There is no need to enable it with the
{$INLINE}directive.Nested comments are not allowed.
The Objpas unit is loaded right after the
systemunit. One of the consequences of this is that the typeIntegeris redefined asLongint. Inversely, it means that system.integer is always 16-bit.Parameters in class methods can have the same names as class properties (although it is bad programming practice).
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
