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

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


Miroslav Madecki


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