Login  Register

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

Posted by stepharo on Dec 23, 2014; 8:45am
URL: https://forum.world.st/How-can-I-specify-the-bindings-when-evaluating-an-expression-tp4794352p4796745.html

Marcus

could you add this issue somewhere because this is something that I'm
expected from a compiler

Stef
Le 6/12/14 11:18, Marcus Denker a écrit :

>> 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
>
>
>