Struct inheritance

amber via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 24 04:05:50 PST 2015


Hi,

Is it possible in D to have inheritance using value types, i.e. 
structs?

Also I don't quite understand how copy ctors work in D. Do I need 
to implement opAssign(S other) {}, or this(this) {} and what's 
the difference between these two?

Thanks,
Amber


More information about the Digitalmars-d-learn mailing list