Default method implementations in interfaces?
pineapple via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Oct 23 08:44:51 PDT 2015
On Friday, 23 October 2015 at 15:07:05 UTC, Alex Parrill wrote:
> Use template mixins: http://dlang.org/template-mixin.html
On Friday, 23 October 2015 at 15:08:30 UTC, Adam D. Ruppe wrote:
> Use a mixin template together with your interface.
Awesome, thanks!
No way, though, to unite declaration and implementation? Feels a
little too much like endless header files to me.
More information about the Digitalmars-d-learn
mailing list