Can we just have struct inheritence already?

Manu turkeyman at gmail.com
Fri Jun 14 05:59:25 UTC 2019


On Thu, Jun 13, 2019 at 9:20 PM Mike Parker via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Thursday, 13 June 2019 at 22:13:51 UTC, Manu wrote:
>
> >
> > So don't implicitly convert to the base type?
> > B extends A, but I don't think it's a kind of A as for
> > polymorphic classes.
>
> So you want
>
> class Foo : BaseClass {}
>
> and
>
> struct Bar : BaseStruct {}
>
> to produce two different results?

Well, one's a class and the other's a struct, and that means what it means.


More information about the Digitalmars-d mailing list