13. Parameter links
dynabind evaluates parameter links from top to bottom in insertion order.
Each assignment sees the values written by earlier links. Parameters with no
link definition retain the values supplied to evaluate. Replacing an
existing link retains its position; it does not move it to the end.
Setting links checks their order once. If an earlier expression reads a name
defined by a later link, RISE:dynabind:ForwardReference identifies both
links and asks for the definition first. The class does not reorder links.
For example, a=b+c followed by c=2*b is rejected, even if the input
array already has a value for c. Write c=2*b before a=b+c instead.
links=dynabind({'a','b','c'});
links=setLink(links,{'b=2','c=2*b','a=b+c'});
values=evaluate(links,[1;9;3]);
% values is [6;2;4], in the declared order a,b,c.
Correctly ordered existing links keep their numerical behavior. A name whose
only definition is outside the link list is an ordinary input, so a single
link a=b+c is valid when b and c are supplied by the caller.