CLIPS crashes when overloaded specific method is called.
Expert System Tool
Brought to you by:
garyriley
Hello,
The following commands makes CLIPS to crash.
(defmethod init-slots((?x STRING)) )
(defmethod delete-instance((?x STRING)) )
(defmethod ppinstance((?x STRING)) )
(defclass FOO (is-a USER))
(defmessage-handler FOO doit()
(init-slots)
(delete-instance)
(ppinstance)
)
(make-instance [a] of FOO)
(send [a] doit)
The patch attached seems to fix this problem.
Thanks.
Fix checked in. The behavior of a method overriding a function that can only be called from a message-handler is now consistent with the behavior for a deffunction or non-overriding method.
It looks fine, Thanks.