On Mon, Feb 21, 2011 at 18:05, Florian Klaempfl <flor...@freepascal.org> wrote: > > Well, he got it wrong :) It is exactly the point of putting units in the > interface uses clause: the compiler helps you to avoid circular unit > dependencies. When you put them in the implementation clause, you just > hide them, they are still here but the compiler does not complain as > long as you don't hit its flawed unit loading algorithm. >
So, Florian, how about adding a compiler hint or warning for circular dependencies? Maybe off by default, to avoid compatibility issues? I would definitely use such a hint in all my projects. -- Alexander S. Klenin -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus