Re: mixin template hide

2016-07-24 Thread arturg via Digitalmars-d-learn
On Sunday, 24 July 2016 at 18:38:53 UTC, Eppason wrote: The obvious solution is to refactor Bar, but in the real world, it is much harder and life would be much easier if I could remove foo from exists inside S. At worse, if Bar did depend on foo, I would simply get errors about missing

mixin template hide

2016-07-24 Thread Eppason via Digitalmars-d-learn
I use self-introspection and have the case for having to "remove" things from the mixin. Typically the mixin will mixin stuff that it does not exist in the scope it is trying to mix in, a great feature. But what I would like to do is tell the mixin not to mix in foo(), this allows me to