Template mixins and struct constructors

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 2 13:52:34 PST 2016



Dne 2.3.2016 v 21:39 Adam D. Ruppe via Digitalmars-d-learn napsal(a):
> On Wednesday, 2 March 2016 at 12:27:04 UTC, Adrian Matoga wrote:
>> Is it by design or is it a bug?
>> And, if it is by design, what is the reason for that?
>
> That's by design. It allows you to override names from a template 
> mixin like inheritance but no runtime cost.
>
> Read my tip of the week here to see how it works and how you can 
> combine ctors from a mixin:
>
> http://arsdnet.net/this-week-in-d/2016-feb-07.html
I know it :). I need to upgrade my memory. I spent all day looking for 
it in D cookbook, because I was sure it was you who make this tip somewhere.


More information about the Digitalmars-d-learn mailing list