mixin bug?

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 11 14:03:36 PDT 2016


On 08/11/2016 01:27 PM, Engine Machine wrote:

 > I see the mixin as a sort of copy and paste.

That's the case for string mixins. Template mixins bring a name 
resolution scope. My understanding of the topic:

   http://ddili.org/ders/d.en/mixin.html#ix_mixin.name%20space,%20mixin

The spec:

   https://dlang.org/spec/template-mixin.html

Ali



More information about the Digitalmars-d-learn mailing list