www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9808] New: with statement does not work with opDispatch


           Summary: with statement does not work with opDispatch
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: robert octarineparrot.com

--- Comment #0 from Robert Clipsham <robert octarineparrot.com> 2013-03-24
13:33:12 GMT ---
The with statement does not appear to take opDispatch into account:
struct Foo {
    string[string] strs;
    void opDispatch(string s, T)(T t) {}

void main()
    Foo f;
    with(f) {
test.d(11): Error: undefined identifier check

Using dmd 2.062.

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