Login  Register

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

Posted by Marcus Denker-4 on Feb 09, 2015; 12:06pm
URL: https://forum.world.st/How-can-I-specify-the-bindings-when-evaluating-an-expression-tp4794352p4804612.html


On 05 Feb 2015, at 10:09, Nicolai Hess <[hidden email]> wrote:



2015-02-05 2:20 GMT+01:00 Sean P. DeNigris <[hidden email]>:
Nicolai Hess wrote
> We lost this feature in 40097

Which feature? Using bare associations instead of WorkspaceVariables?

Yes, maybe feature is the wrong word - ability?
What is missing now is, convert an association into a "VariableBinding"
similiar to WorkspaceVariable or GlobalVariable, that implements the code generation methods
emitStore: and emitValue:

yes, we could move it up to Association… but we should keep VariableBinding as a subclass of
Literal so that people in the future e.g. can put a halt on a variable defined in the
workspace.

And yes, in general we need a nice API for the compiler to hand bindings to it… it is on my TODO
list.

Marcus