Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc!uxc.cso.uiuc.edu!m.cs.uiuc.edu!p.cs.uiuc.edu!johnson From: johnson@p.cs.uiuc.edu Newsgroups: comp.lang.smalltalk Subject: Re: Polymorphism Message-ID: <80500057@p.cs.uiuc.edu> Date: 29 Apr 89 14:01:00 GMT References: <1546@cfa.cfa.harvard.EDU> Lines: 9 Nf-ID: #R:cfa.cfa.harvard.EDU:1546:p.cs.uiuc.edu:80500057:000:442 Nf-From: p.cs.uiuc.edu!johnson Apr 29 09:01:00 1989 Class MethodContext implements the "method" message and the tempAt: and tempAt:put: messages, which lets you learn the method of a context and change the temporaries in the context. To learn the names of the temporaries of a method, you have to get the source code with "getSource" and then extract the temporary names, which will be the first substring deliminated by a pair of |s. The class of methods is CompiledMethod. Ralph Johnson