> I still dont understand why FPC doesnt support circular references...
There is no way to solve that ? Do you think Delphi or Turbo Pascal or even UCSD Pascal ever supports? The concept of units and uses clause makes the order in which units must be initialized (and how identifier is searched) is important, which is derived from how it's written in the uses clause, in a cascaded fashion. Thus, a uses clause serves as a depth first search path for the compiler to determine unit initialization order. If A uses B and B uses A, directly or indirectly, which one should be initialized first? The only way to solve is to correctly group things in a unit (after all, unit serves as a placeholder for closely related things), or use 3rd unit for data sharing or the worst, use circular reference in implementation section. You'll notice that this is a common problem in a language with similar concept (and each have its own workaround). -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Re-fpc-pascal-Complex-circular-references-tp5712061p5712073.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal