[Issue 2457] Detecting circular module dependencies at compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 16 17:02:07 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2457


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #3 from smjg at iname.com  2008-11-16 19:02 -------
An interesting concept.  The only reason I can see for this being a runtime
failure is that the module dependencies are analysed at runtime to determine
the order in which to run static constructors.  But why?

This process should be in the compile time.  Then not only can it report any
circular dependency problems during compilation, but it can also attempt to
resolve any apparent circularity by examining what the static constructor
itself depends on (directly or indirectly).


-- 



More information about the Digitalmars-d-bugs mailing list