[Newbies] how can I compile a String to BlockContext?

ennoausberlin at mac.com ennoausberlin at mac.com
Fri Feb 27 07:28:44 UTC 2009


Hello

Not sure if it perfectly fits your needs, but check here

http://wiki.squeak.org/squeak/3602

bye
Enno


Am 27.02.2009 um 08:12 schrieb Albert Lee:

> aka  eval, in python:
>
>>>> eval('3 + 5')
> 8
>
>
> I guess there is some method can do this in smalltalk.
> like this:
>
> | s b|
> s := '[:x | x + 5]'
> b := SOME_WAY s
> " b is a block now"
> b value: 3
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

Enno Schwass
ennoausberlin at mac.com
http://web.mac.com/onkelenno/iWeb/Web-Site/Blog/Blog.html





More information about the Beginners mailing list