Wow, I've had this wrong for 3 years and it's a critical part of my kb! Guess I was just lucky, although to now I just asserted a fact with a list in a slot and never did anything else with it (it was a 'result' fact to be written to a database).
Thanks for prompt response (again). Dave -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: Re: JESS: modify and multifield slots I think korz, david wrote: > Executing the following code does not produce what I expected. > > (deftemplate work ... > (slot blist) Here's the problem: blist should be a multislot, since you want it to contain a Jess list. You can't put a ValueVector into a single slot -- the behavior is undefined (i.e., Bad Things Will Happen.) If you change "slot" to "multislot" above, you'll find that your program works as you expect. --------------------------------------------------------- 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] -------------------------------------------------------------------- -------------------------------------------------------------------- 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] --------------------------------------------------------------------
