mixed in struct constructor is ignored when another (non mixed in) constructor is specified

ParticlePeter ParticlePeter at gmx.de
Mon Feb 26 14:49:26 UTC 2018


On Monday, 26 February 2018 at 14:42:58 UTC, Adam D. Ruppe wrote:
> On Monday, 26 February 2018 at 14:38:22 UTC, ParticlePeter 
> wrote:
>> This cool, I didn't know that we can name mixins when 
>> instantiating but also never taught that there could be any 
>> purpose for naming. Works, thanks.
>
> oh yes, there's a lot of cool things with mixin. You might want 
> to skim my tip of the week index: 
> http://arsdnet.net/this-week-in-d/totw-index.html and see if 
> more jump out at you.
>
> template mixins have behavior that look stupid until you 
> understand why - then it gets pretty nice. Like the naming and 
> overloading rules allow selective overriding and integration 
> once you know how.

Ok and that is an awesome link as well, I wished having this on 
several occasions. By the way, I also remembered reading your tip 
already once ... yeah, while reading it again. Anyway, thanks.


More information about the Digitalmars-d-learn mailing list