Bug 11398 – Language spec does not allow new eponymous template syntax

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-30T20:57:00Z
Last change time
2014-02-12T23:46:13Z
Keywords
spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2013-10-30T20:57:36Z
http://dlang.org/changelog.html#eponymous_template Again, new language features are being added without the grammar being updated.
Comment #1 by k.hara.pg — 2013-10-30T21:36:23Z
Current compiler implementation for DIP42 does not accept following syntax. enum isInteger(T) = is(T == int); // OK enum bool isInteger(T) = is(T == int); // NG The issue is already filed in bug 11177. To fix the issue, I already posted a compiler fix: https://github.com/D-Programming-Language/dmd/pull/2467 And it has a corresponding documentation change. https://github.com/D-Programming-Language/dlang.org/pull/371
Comment #2 by k.hara.pg — 2014-02-12T23:46:13Z