You can simply redefine a deffunction at any time, and subsequently
the new version will be used. Likewise, you can redefine any defrule
at any time, and the old rule will be replaced by the new one.

I think Young-Jin Lee wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi, I'd like to know if I can modify functions and rules dynamically.
> I want to dynamically create Jess rules and functions and it requires me to update 
>existing rules and functions appropriately.
> For example, suppose at some time a function foo is dynamically created and stored 
>into Jess knowledge base.
> (deffunction foo()
>     (call-another-function1) )
> 
> Then later, I want to modify foo function as follows.
> (deffunction foo()
>     (call-another-function1)
>     (call-one-more-fucntion))
> 
> Is there any way to do this?
> Thanks for your help.
> 
> YJ



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
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