digitalmars.D.bugs - [Issue 16370] New: outdated spec: templated functions allowed in
- via Digitalmars-d-bugs (22/23) Aug 10 2016 https://issues.dlang.org/show_bug.cgi?id=16370
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 puremagic.com Reporter: lodovico 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 specshall be updated. [1] https://dlang.org/spec/template.html#limitations [2] http://forum.dlang.org/post/wmnsqhzrzihgfrahfesq forum.dlang.org --
Aug 10 2016