I do not know the solution is quite open. Now if you implement one please use test so that I can port it in SqPharo
Stef
On May 25, 2009, at 4:03 PM, Mircea Lungu wrote:
Hey guys,
If I import bundle X in Moose, MooseModel>>allModelClasses returns also the classes which are extended in bundle X. However, the class itself does not know that it is an extension. On top of that, the class is imported with all the methods that are defined in all the image, not only the overriden ones. This class (with all the imported methods) is however not part of my model.
My first question is: how do I know if a class is an extension? I've seen that a method answers to the #isExtension message. I could also define an isExtension in the class which considers a class an extension if it contains at least an extended method. Any reason why this would not work?
Second, if we know that a class is an extension, should we change the implementation of allModelClasses so it does not return the extensions?
Thanks, A nice evening, Mircea.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev