[Issue 3301] Undefined identifier error dependent on order of imports when a circular import is involved

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 11 13:27:12 PDT 2009


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


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de


--- Comment #10 from Rainer Schuetze <r.sagitario at gmx.de> 2009-09-11 13:27:11 PDT ---
It has shown up a number of times, for example in #258 and #1592.

I have a patch for this (and the bugs mentioned above) that parses every file
that is unconditionally imported before any semantic analysis.

As this introduces another compile step, I'm not sure if this is a good patch,
and it will fail for conditional imports. So I'm hoping for a more general
solution that works with the deferred semantic analysis and solves more of the
forward reference problems.

Should I attach the patch anyway?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list