Login  Register

How can I specify the bindings when evaluating an expression?

Posted by stepharo on Dec 05, 2014; 2:18pm
URL: https://forum.world.st/How-can-I-specify-the-bindings-when-evaluating-an-expression-tp4794352.html

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?

Stef