JESS: Lisp is maddening

2010-09-18 Thread Donald Winston
Why doesn't this work? (defglobal ?*usps-state-codes* = (progn (bind ?hash-set (new java.util.HashSet 59)) (call ?hash-set add AL) (call ?hash-set add AK) (call ?hash-set add AS) (call ?hash-set add AZ) (call ?hash-set add CA) (call ?hash-set add CO) (call ?hash-set add CT) (call

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

JESS: RE: Jess Folks at JavaOne

2010-09-18 Thread Jason Morris
Hello All, Are any Jess users going to JavaOne? If so, would you please contact me at: jason.c.mor...@gmail.com Thanks! Cheers, Jason -- Morris Technical Solutions LLC consult...@morris-technical-solutions.com (517) 304-5883

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