[fpc-pascal] Re: Complex circular references

Jorge Aldo G. de F. Junior jagfj80 at gmail.com
Fri Nov 23 09:17:27 CET 2012

Or, if the problem is the initialization, makes so that you can only
have circular references among units that dont have explicit

Problem solved.

IIRC someone was trying to change FPC in order to solve circular
references, but this never materialized...

2012/11/23 leledumbo <leledumbo_cool at yahoo.co.id>:
>> 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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list