Zitat von Alexander Klenin <kle...@gmail.com>:

> On 2009-04-03, Marc Weustink <marc.weust...@cuperus.nl> wrote:
> > Alexey S. Smirnov wrote:
> >> SmartLink problem is quite simple. It seems that all units, mentioned in
> >> "Interface->Uses" section will be fully linked. Only units mentioned in
> >> "Implementation->Uses" section can be checked during SmartLink.
> >> So, to enhance  linking process  and to reduce  binary size we shell
> >> check all Interface sections of all LCL units to reduce units list.
> >
> > We have all units listed in the interface section to avoid unit circles.
> >   This is needed since the compiler will fail to compile the LCL sooner
> > or later if there are to many circles.
>
> I strongly agree with Alexey here. The bug in FPC should be fixed and
> Lazarus source updated to remove unnecessary units from 'uses'
> clauses.
>
> Not so much for executable size, but for mantainabilty of the source.

Yes. Avoid uses sections in implementations. This golden rule is true since the
start of FPC.
Using implementation uses sections is asking for trouble.

Mattias

_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to