Method invocation in Slang

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

Method invocation in Slang

Robert Krahn
Hello!

Is there a way to invoke a "normal" method from an arbitrary object  
in Slang?

If I have an oop:

oop := interpreterProxy instantiateClass: MyClass indexableSize: 0.

Now I would like to send message #m1 to the object behind oop. Can  
the InterpreterProxy do that?

Robert

Reply | Threaded
Open this post in threaded view
|

Re: Method invocation in Slang

Bert Freudenberg

On Feb 6, 2008, at 12:02 , Robert Krahn wrote:

> Hello!
>
> Is there a way to invoke a "normal" method from an arbitrary object  
> in Slang?
>
> If I have an oop:
>
> oop := interpreterProxy instantiateClass: MyClass indexableSize: 0.
>
> Now I would like to send message #m1 to the object behind oop. Can  
> the InterpreterProxy do that?

No, the interpreter is not reentrant.

What are you actually trying to accomplish? Possibly Andreas'  
callback support is what you need.

- Bert -