Closed AdrickTench closed 6 days ago
Thanks for reporting this. Yes, it is an issue caused by incompatibility of the legacy approach which is evaluation of the MeTTa expressions doesn't input the evaluation context and new approach when context is passed. Looks like in this case it is relatively easy fixable.
@AdrickTench could you please check if #804 fixes the issue for you
Confirmed:
> !(bind! &new-space (new-space))
[()]
> !(add-atom &new-space (= (foo $x) (+ $x 1)))
[()]
> !(metta (foo 1) Number &new-space)
[2]
metta
does not seem to use the space passed as an argument. The following demonstrates creating a new space and attempting to use it with bothmatch
andmetta
;match
uses the space butmetta
does not.