Evaluation of environment args
Closed this issue · 0 comments
JustusAdam commented
Currently I was simply calling eval
on environment args to get the value.
However that does not work when we have a local binding as argument.
(deftest arguments-outside
"testing the detection of arguments"
[]
(let [an-arg [1 2 3]
type an-arg]
(expect-op-arc-count
(let [out-1 (accept "port01")
out-2 (accept 9080)]
(read out-1 out-2 an-arg)) ; references local arg `an-arg`
; 3 ops + 2 arcs + 3 env arcs
3
5)))
We need a strategy for supporting local arguments.
We could change the code generation, but I'd prefer to find a different way.