struct inheritance need?

Kagamin spam at here.lot
Mon Dec 22 04:23:53 PST 2008


Weed Wrote:

> that is, suppose that after some action should get a matrix matrix3x1

Well... if you want to template every piece of your code, this can cause disaster, so I think, this is not very good design. For example, multiplication method will be duplicated N*N*N times for all possible matrix size combinations. I'd prefer run-time checks, though templates can be used for sure.


More information about the Digitalmars-d-learn mailing list