I think Bret Kellihan wrote: > > Also, Is there anyway to build up an entire jess > expression into a variable and then execute it? I've > tried something on the lines of: > > (bind ?command (str-cat "(bind ?x 1)")) > (?command)
The "eval" function parses and evaluates a String (or a variable containing a String, or a function call returning a String, etc) containing Jess code: Jess> (eval "(bind ?x 1)") 1 Jess> ?x 1 --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------