[Issue 16370] New: outdated spec: templated functions allowed in interfaces

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 10 09:14:29 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16370

          Issue ID: 16370
           Summary: outdated spec: templated functions allowed in
                    interfaces
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: lodovico at giaretart.net

The last line of this page [1] says that interfaces cannot contain templated
functions (and suggest the compiler should raise an error).
But DMD allows templated functions in interfaces, making them implicitly final.
>From a thread [2] it looks like this was a conscious addition, so the spec
shall be updated.

[1] https://dlang.org/spec/template.html#limitations
[2] http://forum.dlang.org/post/wmnsqhzrzihgfrahfesq@forum.dlang.org

--


More information about the Digitalmars-d-bugs mailing list