I think Miroslav Madecki wrote:
> 
> 
> 
> 
> Hello Ernest and folks,
> 
> During development of my expert system in JESS I found a need for CLIPS
> duplicate function.
> 
> I looked at the JESS code and found a way to add it.
> I did following:
> - In file Funcall.java
> 1. copy/paste function _modify and changed word modify to duplicate
> 2. commented out line which deletes old fact
> 3. added "_duplicate" to other intrisinc functions which should be loaded
> to JESS (top of the file).
> - In file Jesp.java
> 4. added if clause for "duplicate" after if clause for "modify".
> 
> This worked for me (I must admit that I did not thorough testing).
> 

It should work fine for normal facts, but it won't work for
definstance 'shadow' facts (modify and retract do work in this case.)
There would need to be some additional code to make this work properly
for definstances.

> My question to Ernest: Is it possible to add duplicate to some of future
> JESS releases ?
> 

OK, it's on the list.

> 
> Miroslav Madecki
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (510) 294-2154
Sandia National Labs                FAX:   (510) 294-2234
Org. 8920, MS 9214                  [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. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to