JESS: Scoping Question

2011-11-10 Thread David Scuse
Hi Ernest: I came across a strange feature of Jess as a result of a typing error. It appears as though Jess uses dynamic scoping -- any variables defined in a rule are visible in any functions called by the RHS of the rule. I looked for references to this in the book and the manual but couldn't

RE: JESS: Scoping Question

2011-11-10 Thread Friedman-Hill, Ernest
Since control structures are functions in Jess, the ability for a function to peek from one stack frame to another is important. I could have implemented this using some kind of special form or keyword -- like the Tcl uplevel function -- but in the first go-round, I think I just took the easy

Re: JESS: Scoping Question

2011-11-10 Thread David Scuse
That makes perfect sense. Thank you. - Original Message - From: Friedman-Hill, Ernest To: jess-users Sent: Thursday, November 10, 2011 2:15 PM Subject: RE: JESS: Scoping Question Since control structures are functions in Jess, the ability for a function to peek from one

JESS: Ignore slots when matching lhs of rules

2011-11-10 Thread Hunter McMillen
Hi everyone, I am trying to match the lhs of a rule using a template that has 112 slots that is defined from a Java class. Here is the template definition (from show-deftemplates): (deftemplate MAIN::unit $JAVA-OBJECT$ eisbot.proxy.model.Unit (declare (from-class