www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11398] New: Language spec does not allow new eponymous template syntax

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11398

           Summary: Language spec does not allow new eponymous template
                    syntax
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody puremagic.com
        ReportedBy: brian-schott cox.net



http://dlang.org/changelog.html#eponymous_template

Again, new language features are being added without the grammar being updated.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 30 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11398




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

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