From: Douglas Livingstone Date: 2005-05-23T19:45:37+09:00 Subject: Re: Uniform vector class, inheriting from Array: How to make sure that methods return a Vector and not an Array? On 5/22/05, gabriele renzi wrote: > this makes me think: the delegation approach is usually simpler. > But is this because of an underlying fault of the inheritance mechanic > or is it the obvious more simple thing? I think you've got it. Classes which have methods which return instances of their own class should, once extended, return instances of that extended class. I'm not sure how it would work, something like return self.new. Douglas