Get a symbol pointer une VMMaker

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Get a symbol pointer une VMMaker

Mathieu SUEN
 

Hi,

I am trying to hack some method and I would like to send a message to  
a Squeak object in the VM.
How the reification works between the VM and the Squeak word?

I could do somethigs like:

        messageSelector := "Pointer to the symbol I don't know how to  
retrieve."
        argumentCount := 1
        self normalSend.

Thanks

        Mth



Reply | Threaded
Open this post in threaded view
|

Re: Get a symbol pointer une VMMaker

Bert Freudenberg
 

On Apr 19, 2007, at 14:16 , Mathieu Suen wrote:

>
> Hi,
>
> I am trying to hack some method and I would like to send a message  
> to a Squeak object in the VM.
> How the reification works between the VM and the Squeak word?
>
> I could do somethigs like:
>
> messageSelector := "Pointer to the symbol I don't know how to  
> retrieve."
> argumentCount := 1
> self normalSend.
>

I don't think you can call the interpreter from within a primitive.  
The only way for this would be Andreas' callback support.

Perhaps you can give a little more context about what you are trying  
to do?

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Get a symbol pointer une VMMaker

Mathieu SUEN
 
Well for example I want to send to Transcript the method #show:

        Mth



On Apr 19, 2007, at 2:49 PM, Bert Freudenberg wrote:

>
> Perhaps you can give a little more context about what you are  
> trying to do?

Reply | Threaded
Open this post in threaded view
|

Re: Get a symbol pointer une VMMaker

Lukas Renggli
 
> Well for example I want to send to Transcript the method #show:
>
>         Mth

Write it to the console, that's certainly ways simple ;-)

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch