[fpc-pascal] Is there some disadvantages using mode Delphi?

Marco van de Voort marcov at stack.nl
Sat Apr 29 22:23:09 CEST 2017

In our previous episode, Marcos Douglas B. Santos said:
> I would like to write some packages that should work in FPC and Delphi.
> I know that I will need to use {mode delphi} to do that.
> My ask is: Is there some disadvantages using this mode?
> I mean, is there something that we only can do in mode objfpc but not in
> mode delphi, or is it just about syntax?

Mostly syntax. Mode objfpc disambiguates a corner case for procedural types
with an extra @ for assignment of procedural types, and a few other

The proponents of mode objfpc make a big deal out of the differences, but
IMHO it is mostly nitpicking. And worse unnecesarily incompatible

More information about the fpc-pascal mailing list