[Issue 8635] New: Allow postfix expressions for new
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 9 07:34:52 PDT 2012
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: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at 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: -------
More information about the Digitalmars-d-bugs
mailing list