A lot easier is to identify two points: 1) Why would you want to do that? 2) With the answer of 1) try to identify the image subsystem to apply the instrumentation.
All other techniques are forms of interventionism, you will be trying to perform surgery to a terminal patient. Cheers, Hernán 2010/3/25 Mariano Martinez Peck <[email protected]>: > Hi folks. I want to intercept (and do something) for all objects. I know few > approaches, for example: > > 1) using method wrappers (implementing run: aSelector with: arguments in: > aReceiver) I can wrap all compiled methods of all classes and there I have > the receiver. > > 2) become all objects to some kind of hacky object that stores the original > object and that redefines the doesNotUnderstand: > > But in 1) I need to change all CompiledMehtod of all classes. > in 2) I have to become all the objects to another object > > Then my question is, is there an easier way to intercept all messages send > to all objects from the image side (not going to vm) and with a lower cost ? > And if going to vm, how ? > > Thanks. > > Mariano > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
