Hi folks. I need to be able to execute a method with an object but not sending a message to that object. So for example, I've checked Message>>sendTo: or CompiledMethod>>valueWithReceiver:arguments:<br>
and both of them are finally sent to the receiver. I need to do something like: (MyClass >>#foo) valueWith: anObject args: args.<br>but I don't want that the primitive is sent to anObject.<br><br>I would like to be able to send such message to the compiled method, and being the receiver. For example, something like this:<br>
<br>CompiledMethod >> valueWithReceiver: aReceiver arguments: anArray <br>
"Execute compiledMethod against the receiver and args in argArray. The receiver is the CompiledMethod"<br><br> <primitive: 666><br> self primitiveFailed<br><br>Do you think this is doable ? If true, can you give me any hint ?<br>
<br>I took a look to #primitiveExecuteMethod but I cannot figure out how to adapt it.<br><br>Thanks in advance,<br><br>Mariano<br><br><br>