I want to create a much simpler collection hierarchy, which contains only a few classes with the most important methods and not the full blown standard collection classes with many extension methods and so on. As an example, I have 4 classes for now: MyCollection, MySequencableCollection, MyArray, MyOrderedCollection. Obviously, the implementation of MyOrderedCollection is fairly the same as OrderedCollection, however I do not want to have all those funny methods in it. How can I achieve to have only those methods I need in MyOrderedCollection, without simply copying the sources and thus avoiding code duplication and later on even divergation?
Martin
Matthias Berth schrieb:
I wonder what your reason is for this, maybe there is a simpler way to achieve your goal?
Matthias
On Thu, May 29, 2008 at 3:39 PM, Martin Beck martin.beck@hpi.uni-potsdam.de wrote:
Hi there, for some reasons, I want to have two methods sharing the same source code base. So if I change one method within the browser, the other would change, too. Is this possible in Squeak? And, would the usual tools work with that?
Regards, Martin