How can I watch the specific method?

31 views
Skip to first unread message

yoshiaki

unread,
Apr 21, 2024, 10:11:02 AMApr 21
to CLIPSESG
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.

watch-test.txt
genrccom.c.patch

CLIPS Support

unread,
May 10, 2024, 6:40:36 PMMay 10
to CLIPSESG
Checked in this fix to the svn repository on SourceForge.

yoshiaki

unread,
May 15, 2024, 9:42:15 AMMay 15
to CLIPSESG
Thanks! Gary.

2024年5月11日土曜日 7:40:36 UTC+9 CLIPS Support:
Reply all
Reply to author
Forward
0 new messages