Menu

#19 Display function call results when watching

1.0
new
nobody
None
2017-09-02
2017-09-02
Xin Wang
No

Currently, CLIPS only show function arguments when watch is enabled, without functon call results. e.g.:

% clips
         CLIPS (Cypher Alpha 9/1/17)
CLIPS> (deffunction add1 (?i) (+ 1 ?i))
CLIPS> (deffunction add2 (?i) (+ 1 (add1 ?i)))
CLIPS> (watch all)
CLIPS> (add2 10)
DFN >> add2 ED:1 (10)
DFN >> add1 ED:2 (10)
DFN << add1 ED:2 (10)
DFN << add2 ED:1 (10)
12
CLIPS>

It would be nice if function call results can also be printed.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB