mixed in struct constructor is ignored when another (non mixed in) constructor is specified
Adam D. Ruppe
destructionator at gmail.com
Mon Feb 26 14:42:58 UTC 2018
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.
More information about the Digitalmars-d-learn
mailing list