Hi guys,

it seems that there is a bug in JESS regarding the handling of the defadvice before and after feature. If we define a defadvice for assert

(defadvice after assert
        (printout t ?retval crlf)
)       

and we execute the nested assert in

(assert
        (templateA
                (slotName1 value1)
                (slotname2 value2)
                (assert
                        (templateB
                                (slotName3 value3)
                                (slotname4 value4)
                        )
                )
        )
)

the defadvice code is executed only for the first assert and not for the nested one. As solution we can simply define another
function that executes the defadvice before code and then calls the assert.


Regards,
Karl-Heinz.

---
  Dipl.-Inform. Karl-Heinz Krempels
  Aachen University of Technology
  Department of Computer Science, Communication and Distributed Systems
    Ahornstrasse 55, 52074 Aachen, Germany
    Phone: +49 241 80 21 410
    Fax: +49 241 80 22 220
    eMail: [EMAIL PROTECTED]

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------



Reply via email to