Template Mixin Conflicts

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 6 05:50:37 PDT 2014


On Mon, 06 Oct 2014 12:17:00 +0000
Alice via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

the joy of mixin bugs, yeah! it's a bug in compiler: it instantiates
mixin in invalid scope. for now you can use string mixins, they are
working fine.

you also can use this to fix scoping:

=== ModuleA.d ===

  module ModuleA;
  static import ModuleB;
  mixin ModuleB.MixinUsefulStuff;
  pragma(msg, "a = ", SomeData.a);

btw, do you mind to fill a bugreport?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141006/4f8b2040/attachment.sig>


More information about the Digitalmars-d-learn mailing list