From: Gavin Sinclair Date: 2002-12-14T23:48:42+09:00 Subject: Re: Is it wise to extend Matrix? From: "Russ Freeman" > >Of course, I think there are some implementation problems he had with > the type >that was returned from some methods - I lost track. But maybe > he can come up >with a new kind of delegation that solves that. > > Isn't there a Delegate mixin that can take the pain away? > > Russ Yes, he would begin with require 'delegate' class MyMatrix < DelegateClass(Matrix) # ... end and by examining the Pickaxe section on it, because when I tried delegating Array I had trouble instantiating my new class. When I mentioned a "new kind of delegation" I meant that the return values of the delegated methods might be doctored (class-wise). I don't know whether that would be an issue (as in the "Inheritance Question" thread) and I certainly don't know if my off-the-cuff new-delegation thought would be feasible. Gavin