[!! SPAM] Re: Evaluate expression

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

[!! SPAM] Re: Evaluate expression

Oleg Richards
Lukas, thank you very much for your answer. It was really helpful. But  
I have one more question:

In ruby I can create class which will handle method_missing method.  
This method will return variable with name. So I can write something  
like (in one of instance methods of class): eval(self.var1 +  
self.var2 / self.var3)

How can I do it in smalltalk. I hope that u can help me.

Cheers, Oleg
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: [!! SPAM] Re: Evaluate expression

Ramon Leon-5
> Subject: [Seaside] [!! SPAM] Re: Evaluate expression
>
> Lukas, thank you very much for your answer. It was really
> helpful. But I have one more question:
>
> In ruby I can create class which will handle method_missing method.  
> This method will return variable with name. So I can write
> something like (in one of instance methods of class): eval(self.var1 +
> self.var2 / self.var3)
>
> How can I do it in smalltalk. I hope that u can help me.
>
> Cheers, Oleg

Use at your own risk, but in Smalltalk, method_missing is called
#doesNotUnderstand.

Ramon Leon
http://onsmalltalk.com

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside