Can we just have struct inheritence already?

Danni Coy danni.coy at gmail.com
Tue Jun 11 02:08:56 UTC 2019


If the main objection to

struct DerivedStruct : BaseStruct
 {
     // derived members
     //...
 }

looks too much like polymorphism

would something like
struct DerivedStruct
{
     @contains BaseStruct base;
}
with some creative lowering
be a more acceptable way forward?


More information about the Digitalmars-d mailing list