Leopold Toetsch writes: > I think that for supporting Ruby or such we have to keep fences between > PMCs and "real objects" very low.
Agreed, or have some sort of automagic transformation possible. > So it should be possible to define an Imaginary Number class that > inherits from two (Perl?)Nums directly and overloads some operators > without much overhead, i.e. the 2 attributes (re, im) would be kept in > the 2 number PMCs. I don't think that would work. If I remember correctly, we're going to make all inheritance 'virtual', correct? Which means that inheriting from 2 number PMCs should be precisely the same as inheriting from 1 number PMC. That's okay, though, because from a design perspective, inheritance wouldn't be the way to go about that kind of problem anyway :-) Luke > > > Dan > > leo