Summary: The lookup order of recursive with statements is
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: websites

--- Comment #0 from Bernard Helyer <> 2010-12-01 
05:27:29 PST ---
In implementing SDC I find myself asking these questions, and I wish to try and
put and end to DMD being the sole definer of semantics; just letting you know
the reason for this and subsequent bug reports.

Given a series of with statements:

    with (a) with (b) with (c) {

If all three objects have a method d(), then c gets called. Obviously the with
statements are considered in a LIFO order, and the sentence
"Use of with object symbols that shadow local symbols with the same identifier
are not allowed. "

does not apply here. Neither is documented behaviour, and the only to figure
out how D behaves is to run DMD.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to