Closed patham9 closed 2 years ago
TODO investigate what this allows for compared to current compound op functionality which needs "hidden state passing" rather than via logical variables. And if it turns out to be better: how to allow it in Py interface. stdin case to be set up for an op?
Already done: https://github.com/opennars/OpenNARS-for-Applications/pull/190 TODO make it work from Python interface, then merge & close.
done
Reason: Compound ops sometimes want to pass an argument from one op to the next, using internal state for this isn't elegant. in Decision_Execute: First execute op, and apply substitution map to feedback before feeding it as event. Also apply substitution to next step of compound op (to become new input args with var substituted) and repeat.