On Tue, Sep 29, 2009 at 12:55 PM, Neal Becker <ndbeck...@gmail.com> wrote:
> This seems to work now, but I'm wondering if Charles is correct, that > inheritance isn't such a great idea here. > > The advantage of inheritance is I don't have to implement forwarding all > the > functions, a pretty big advantage. (I wonder if there is some way to do > some > of these as a generic 'mixin'?) > > Using inheritance for implementation is not the thing to do. The usual bit of wisdom is to ask the questions "is a?" and "is implemented with?". If the answer to the first question is no, then don't use inheritance. Sometimes private inheritance is used in C++, but even that isn't considered best practice. Chuck
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion