Template method in interfaces

Lodovico Giaretta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 10 09:05:57 PDT 2016


On Wednesday, 10 August 2016 at 15:54:42 UTC, Adam D. Ruppe wrote:
> On Wednesday, 10 August 2016 at 15:48:10 UTC, Lodovico Giaretta 
> wrote:
>> I read the spec again, and found out that it says interfaces 
>> cannot contain templated functions... So either my 
>> interpretation is the intended one and the spec is outdated, 
>> or the spec is right and the compiler is bugged.
>
> Spec must be out of date, I remember this being a conscious 
> decision to add them.

Last line of this page: 
https://dlang.org/spec/template.html#limitations

I'll file a bug report for this and an enhancement request for 
implicit final in interfaces.


More information about the Digitalmars-d-learn mailing list