Hi David, hi all!
For using object-as-method, you do not need to inherit from #AbstractObjectsAsMethod. Just install an object into a class' method dictionary that implements #run:with:in:.
Method Wrappers do this: https://github.com/hpi-swa/MethodWrappers
Here is an example for installing such objects-as-methods: https://github.com/hpi-swa/MethodWrappers/blob/master/packages/MethodWrapper...
It uses Behavior >> #addSelectorSilently:withMethod: to modify the class' method dictionary.
Best, Marcel Am 15.03.2021 20:06:33 schrieb stes@PANDORA.BE stes@telenet.be: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
When I select the method run:with:in: of the class (AbstractObjectsAsMethods subclass) ObjectsAsMethodsExample :
and then I click in the menu on "Implementors of it" (m), I find:
Implementors of run:with:in:
ObjectsAsMethodsExample run:with:in: {as yet unclassified} TestCoverage run:with:in: {evaluation} WrappedBreakpoint run:with:in: {evaluation}
So I suspect the classes "TestCoverage" and "WrappedBreakpoint" somehow also implement run:with:in
Perhaps TestCoverage in the category SUnitGUI is a reason why the feature is there.
David Stes
_______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners