[fpc-devel] circular uses clauses
ik
idokan at gmail.com
Fri Oct 3 00:54:17 CEST 2008
The difference between include and uses is that include just drop
everything inside the file that is using it, uses is also adding
namespace and you do not share the same content.
The problem with circular issues, is that it really hard to debug
problems, and it usually cosing more headacks then solving problems.
That's at least the reason why I think the FPC team does not allow
such behavior (there might be additional reasons for this).
Ido
On Fri, Oct 3, 2008 at 12:52 AM, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
> Hi.
>
> Quote from CodeGear news
> "circular uses clauses - why can't I declare two classes in two units
> that refer to each other? Why doesn't forward declarations cope with
> this? I've got this feature in C, C++ and C# why not Delphi?"
>
> That's a good question... Why can't FPC allow that either? I don't
> know the internals of FPC, but can't FPC simply keep a list of used
> units as it compiles, so it simply skips any later references. What is
> the technical issue? I'm just curious here.
>
>
> Regards,
> - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://opensoft.homeip.net/fpgui/
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
--
http://ik.homelinux.org/
More information about the fpc-devel
mailing list