Re: Remove stuff from a template mixin

2016-07-26 Thread Gorge Jingale via Digitalmars-d-learn
On Tuesday, 26 July 2016 at 22:23:37 UTC, Jerry wrote: On Tuesday, 26 July 2016 at 19:02:32 UTC, Gorge Jingale wrote: I might want to actually use Add internally in B so I can add some elements behind the scenes, I do not want to expose it to the outside world though. There are no way to remo

Re: Remove stuff from a template mixin

2016-07-26 Thread Jerry via Digitalmars-d-learn
On Tuesday, 26 July 2016 at 19:02:32 UTC, Gorge Jingale wrote: I might want to actually use Add internally in B so I can add some elements behind the scenes, I do not want to expose it to the outside world though. There are no way to remove things from an template directly. But you could howe

Re: Remove stuff from a template mixin

2016-07-26 Thread Gorge Jingale via Digitalmars-d-learn
I might want to actually use Add internally in B so I can add some elements behind the scenes, I do not want to expose it to the outside world though.

Remove stuff from a template mixin

2016-07-26 Thread Gorge Jingale via Digitalmars-d-learn
Is there a way to remove functions and fields that a mixin template adds? I use mixin templates to create other types contents, like struct A { mixin Stuff(); } But Sometimes I only want some of the stuff. struct B { mixin Stuff(); @disable Add(); } B is like an A but doesn't have the abilit