[squeak-dev] Clamato

Avi Bryant avi at dabbledb.com
Sun Sep 6 07:48:57 UTC 2009


On Sat, Sep 5, 2009 at 10:57 AM, Robert
Krahn<robert.krahn at googlemail.com> wrote:

> I expected this to work, however, String>>eval just returns the String. The
> same happens when I try to do '1+1'._eval() in a JS console. Do you know
> where the problem is?

Javascript's eval has confusing semantics - try using globalEval
instead.  Though, even with that I'm not sure your code would work -
what do you expect "method asJavascript" to return?  I don't think it
will be anything useful.

Avi



More information about the Squeak-dev mailing list