evaluate: with bindings

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

evaluate: with bindings

Stephane Ducasse-3
Hi Marcus

I would like to be able to do the following:

Compiler
    bindings: {'aValue' -> 33};
    evaluate: 'aValue + aValue'

and get 66

Is it possible?

Stef

Reply | Threaded
Open this post in threaded view
|

Re: evaluate: with bindings

Sean P. DeNigris
Administrator
Stephane Ducasse-3 wrote
> I would like to be able to do the following:

Smalltalk compiler
        bindings: {#aValue -> 33} asDictionary;
        evaluate: 'aValue + aValue'



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: evaluate: with bindings

Stephane Ducasse-3
Thanks!


On Tue, Mar 27, 2018 at 7:38 PM, Sean P. DeNigris <[hidden email]> wrote:

> Stephane Ducasse-3 wrote
>> I would like to be able to do the following:
>
> Smalltalk compiler
>         bindings: {#aValue -> 33} asDictionary;
>         evaluate: 'aValue + aValue'
>
>
>
> -----
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>