[fpc-pascal] uses myunit in '../src/myunit.pas' ?

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Feb 12 10:04:55 CET 2017


On Sun, 12 Feb 2017 15:33:23 +0800
Tim Veldhuizen <tim at timveldhuizen.nl> wrote:

> Indeed, I can confirm Delphi does this. I think since 2009 or XE or so, 
> but AFAIK it doesn't need to. It does it only for the files that are 
> explicitly added to the project, but those are also in the dproj file. 
> And it would compile just fine without explicitly referring to the files 
> in the dpr file, so I'm not exactly sure why it does it. Perhaps it's a 
> kind of optimization for the caching system in the IDE..

Delphi uses them just a marker for the IDE, that the units belongs
to the project. It does not create different code.
It uses that system since at least Delphi 3.

Mattias



More information about the fpc-pascal mailing list