Hi,
Is there a way to change a default value in a deftemplate?
Declaring a deftemplate twice for the same deftemplate name issues an
error (strangely, unless you define the deftemplate exactly as before).
I managed to do the following work arround:
;---
(deffunction f () return 0 )
(deftemplate t (slot s (default-dynamic (f))) )
(assert (t))
(deffunction f () return 1 )
(assert (t))
(facts)
;---
Redefining a function seems to work ok (although the Jess editor issues
a warning message). In this case, I get two facts, one with each
intended default value.
Is there a simpler way of doing this, e.g. by changing the deftemplate
directly?
Thanks.
Henrique
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users
you@...'
in the BODY of a message to
majordomo@..., NOT to the list
(use your own address!) List problems? Notify
owner-jess-users@....
--------------------------------------------------------------------