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

Hernán Morales Durand hernan.morales at gmail.com
Fri Feb 27 15:45:46 UTC 2009


Or http://www.squeaksource.com/evaluablestrings.html

2009/2/27  <ennoausberlin at mac.com>:
> 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
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>


More information about the Beginners mailing list