Structure's inheritance
Temtaime
temtaime at gmail.com
Sun May 12 04:21:11 PDT 2013
Hello to all !
I'm surprised that there is no structure's inheritance.
There is a problem:
I want to make Matrix MxN class. I also want to make child
classes Square Matrix and Vector from it with additional
functions.
I don't want use "class" cause of "new" overhead. Std typecons's
Scoped - workaround with many restrictions, so it isn't true
solution.
I'm tried mixin template but there is no luck. I don't know how
to declare multiplication operator for example.
Any suggestions ?
Regards.
More information about the Digitalmars-d-learn
mailing list