Hi, I'm pretty sure it is not possibe to do that on classes without VM modifications. But you may look at WADynamicVariable from Seaside how to process such context specific globals.
-- Pavel On Fri, Apr 20, 2012 at 9:27 PM, Sean P. DeNigris <[email protected]> wrote: > How would I hook into the system, let's say during the execution of one > particular method (and whatever methods it calls recursively), and > substitute one Class for another, without effecting the rest of the system? > > For example: > myMethod > "Until I return, use MyOtherClass instead of MyClass, but only in this > thread" > > MyClass doSomething. > ThirdClass doSomethingElse. > > ThirdClass>>doSomethingElse > "This use of MyClass will also be replaced with MyOtherClass" > > MyClass doAnotherThing. > > Thanks. > Sean > > -- > View this message in context: > http://forum.world.st/Late-binding-class-names-tp4575026p4575026.html > Sent from the Pharo Smalltalk mailing list archive at Nabble.com. >
