[Q] executing SOME compiledMethod (classless)
Stephan Rudlof
sr at evolgo.de
Fri Mar 31 19:26:24 UTC 2000
I wrote:
>
> The receiver of a message like
> perform:withArguments:
> is necessary just to find the corresponding CompiledMethod in its class
> or superclass. For executing a CompiledMethod which doesn't refer to the
> class where it belongs to, we don't need this class.
>
> So we don't need a receiver to execute *such* a compiledMethod!
>
> But if it accesses e.g. inst vars of an object instance of some class
> where it has been compiled in, then we are not able to use it senseful
> with other receivers not being instances of this class.
It would be a problem already, if there is just a
^self
inside the compiled method... (this refers to a receiver)
Stephan
--
Stephan Rudlof (sr at evolgo.de)
"Genius doesn't work on an assembly line basis.
You can't simply say, 'Today I will be brilliant.'"
-- Kirk, "The Ultimate Computer", stardate 4731.3
More information about the Squeak-dev
mailing list
|