Hi,
I have two modules that are similar. The rules are fired on one module and
there facts are asserted, modified and retracted. Based on some value
these actions need to performed on the second module. I thought it might
be a good idea to approach it in this way:
(defglobal ?*acts* = (new LinkedList))
(defadvice before assert
(?*acts* add $?argv)
)
(deffunction makeithappen ( )
(foreach ?a ?*acts*
; call the action
)
)
In words, I store all the actions in the acts list whenever assert is
called. Then, the function makeithappen calls all the functions again, but
then on the second module. How can I do this? Or is there another way?
Regards,
Nick.
--------------------------------------------------------------------
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]
--------------------------------------------------------------------