Proxy maybe? I remember an example in Pharo by Example Book chapter 13 or 14. So the main idea would be: Create MyProxy, subclass of ProtoObject and with an instance variable. MyProxy>>initialize morph := self. Override doesNotUnderstand to dispatch the message to the other object. Also implement your custom behavior in the MyProxy. Then use #become: to install the proxy. (The one that swaps all the references) Cheers, Alejandro 2014-02-04 Sean P. DeNigris <sean@clipperadams.com>:
What would be the best way (as an experiment) to change the behavior of just one instance. For example, say: SpecialMorph>>#color ^ Color blue. but (the effect of) aSpecialMorph>>#color ^ owner color.
----- Cheers, Sean -- View this message in context: http://forum.world.st/Instance-specific-behavior-tp4741502.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.