Hello,
The watch command with method-index always fails as following.
$ ./clips -f watch-test.txt
CLIPS (6.4.2 4/12/24)
CLIPS> (defmethod myecho ((?x INTEGER))
(format stdout "INTEGER[%d]%n" ?x)
(return)
)
CLIPS> (list-defmethods)
myecho #1 (INTEGER)
For a total of 1 method.
CLIPS> (watch methods myecho 1)
[ARGACCES2] Function 'watch' expected argument #3 to be of type 'method index'.
CLIPS> (deffunction test()
(myecho 1)
)
CLIPS> (test)
INTEGER[1]
CLIPS>
One solution for it is to fix genrccom.c as the patch attached.
Thanks.