Re: JESS: Lisp is maddening

2010-09-18 Thread Ernest Friedman-Hill
That's extremely close; the only problem is on the last line of the defglobal: (?hash-set) is an attempt to call the function whose name is in ?hash-set. That's not a function name, it's a map, so it doesn't work (the error is method name expected, as Jess tries to call a method on that

Re: JESS: Lisp is maddening

2010-09-18 Thread Win Carus
Hello Donald. You were very close. Since you were erroneously treating the ?hash-set variable in the last statement in your (progn) as a function, to get the result you want, remove the parentheses surround it, as in the following very slightly modified form of you (defglobal): (defglobal

Re: JESS: Lisp is maddening

2010-09-18 Thread Wolfgang Laun
On 18 September 2010 15:38, Ernest Friedman-Hill ejfr...@sandia.gov wrote: That's extremely close; the only problem is on the last line of the defglobal: (?hash-set) is an attempt to call the function whose name is in ?hash-set. That's not a function name, it's a map, so it doesn't work (the