Can we just have struct inheritence already?

Manu turkeyman at gmail.com
Wed Jun 19 01:10:56 UTC 2019


On Wed, Jun 19, 2019 at 10:45 AM Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On 6/18/2019 5:01 PM, Timon Gehr wrote:
> > This works if Base and Derived are defined in the same module. Otherwise this
> > does not do the correct thing, because mixin templates are analyzed in the scope
> > into which they are mixed.
>
> That is correct, but with some care you can make it work, even if the mixin
> template functions just forward to other functions which are evaluated in the
> BaseMembers' scope.

I already have workarounds. That's not what this thread is about.


More information about the Digitalmars-d mailing list