This looks like a bug.

I'll look into this in detail, but I think the fix is to change the
"assert(f)" call in Rete.assertString() to 
"expandAndAssert(f, m_globalContent)," so you might want to try that. 



I think Krzysztof Gajos wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> 
>       I noticed that facts with default-dynamic do not get properly initialized
> when you create them from the Java side. I have a fact like this one:
> 
> (deftemplate kcommand
> ...
>   (slot id (type INTEGER) (default-dynamic (newCommandID)))
> )
> 
> Where (newCommandID) function returns consecutive integers. When create
> those facts from the JESS side, the id slot gets initailized to an integer.
> When I create a kcommand from the java side (with assertString), the slot id
> looks like:
> 
> "(id (newCommandID))"
> 
>       Any suggestions?
> 
>       Yours,
> 
>               Krzysztof (in writing usually addressed as K.)
> 
> ============================================================================
> Krzysztof Gajos            tel. +1-617-718-0572 (home) NEW AGAIN!!!
> MIT AI Lab, NE43-832            +1-617-253-5043 (office) - leave msgs here
> 200 Technology Sq.              +1-617-258-7470 (lab)
> Cambridge, MA 02139, USA
> 
> 
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------

Reply via email to