[fpc-pascal] A patched unit overriding the default - like Delphi supports

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 17 11:13:13 CEST 2010


On Thu, 17 Jun 2010 10:51:46 +0200 (CEST)
marcov at stack.nl (Marco van de Voort) wrote:

> In our previous episode, Graeme Geldenhuys said:
> > Op 2010-06-17 10:39, Marco van de Voort het geskryf:
> > > 
> > > IIRC delphi has a equivalent of -Ur ({$IMPLICITBUILD OFF}). Were the
> > > _original_ components compiled with that?
> > 
> > It's been over 7 years, so the details are a bit fuzzy.  If I remember
> > correctly, Delphi used to like dumping all installed components (and thus
> > *.dcu and *.bpl files) in a single directory (I think it was called
> > Delphi7\Projects\Bpl\).
> 
> Well, it is hard to implement fuzzy details :-)
> 
> > If your project then included a new *.pas files with earlier unit search
> > path pointing to that new *.pas, it would recompile it and its *.dcu will
> > be generated inside your project's output path, thus used instead of the
> > original one in the Delphi7\Projects\Bpl path.
> 
> Were it third party or components that come with Delphi that you replaced?

If only the unit implementation changes, and you don't use inlines and
you compile the unit with the same compiler flags, can this ppu be used
instead of the original?

Mattias



More information about the fpc-pascal mailing list