[fpc-devel] $IF issues

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Aug 14 12:43:12 CEST 2006

On 8/14/06, Daniƫl Mantione <daniel.mantione at freepascal.org> wrote:
> mode. To write new code that is compilable by both FPC and Delphi, Objpas
> mode should suit as well as Delphi mode.

Not quite!  The project I am working on (tiOPF) is mainly used by
Delphi developers, as I mentioned before.  My first thought was to use
tiOPF with FPC in compiler mode ObjFPC.  I had to add over a hundred
IFDEF's for all the @ProcedureName assignments.  A few months later,
the Delphi delevelopers got sick of all the IFDEF's in the code.  I
changed the FPC compiler mode to Delphi and could remove all those
IFDEF's with the @ sign.  That is just one such difference in the
compiler modes.

  - Graeme -

There's no place like

More information about the fpc-devel mailing list