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

           Summary: Allow postfix expressions for new
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2012-09-09 07:35:29 PDT ---
New expressions should have support for postfixes, eg. like so:

class C{
    int x;
    this(int x)
    {
        this.x = x;
    }
}
void main()
{
    assert(new C(2).x==2);
    assert(new C(3).x==3);
}

Necessary grammar changes:

UnaryExpression:
    ...
    ( Type ) . Identifier
-   NewExpression
    ...

PrimaryExpression:
    ...
    ImportExpression
+   NewExpression
    BasicType . Identifier
    ...

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

Reply via email to