Use "default-dynamic" instead of "default" -- this is described in
manual section 2.7.2.
I think Matthias Blankenhaus wrote:
> Hello !
>
> I'd like to attach a time stamp to asserted facts. One way to do it is
> the explicit way like:
>
> (assert (matthias (time)))
>
> I'd like add the time automatically to an asserted fact:
>
> (deftemplate F1 (slot name) (slot time (default (time))))
>
> Unfortunately this does not really give me what I want. (time) as
> evalutated when deftemplate gets evaluated. What I need here is a defered
> eval so that (time) gets evaluated when I assert a fact. The LISP
> programmers will know that defered evaluation of function parameters is a
> LISP language primitive.
>
> Any idea how to solve this problem ?
>
>
> Thanx,
> Matthias
>
>
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
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]
---------------------------------------------------------------------