Login  Register

Re: How can I specify the bindings when evaluating an expression?

Posted by Marcus Denker-4 on Dec 06, 2014; 10:11am
URL: https://forum.world.st/How-can-I-specify-the-bindings-when-evaluating-an-expression-tp4794352p4794404.html


> On 05 Dec 2014, at 15:18, stepharo <[hidden email]> wrote:
>
> I would like to be able to express
>
> Compiler new
>    bindings: { a -> 3. b -> 4};
>    evaluate: 'a + b';
>    result
> and get 7
>
> How can I do that?
>

Not directly, as evaluate is just a doit… but it can be added
as the machinery is there for evaluating in context in the debugger.

I will have a look but not this weekend.

        Marcus