sleyzerzon / soar

Automatically exported from code.google.com/p/soar
1 stars 0 forks source link

RHS arithmetic functions fail silently in Java debugger #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
RHS arithmetic operators and comparators fail if the constant operands
aren't numbers. More specifically, a rule like this:

sp {test
   (state <s> ^type state)
-->
   (<s> ^will-appear 1
        ^will-fail (+ 1 a)}

will fire, but only the (<s> ^will-appear 1) wme will be added to the
state. The (<s> ^will-fail ?) wme is simply ignored. 

An error is printed to console directly:

Error: non-number (a) passed to + function

This will appear in TestCLI, but not in the Java debugger. The error
reporting should be corrected so that the message appears in the Java debugger.

Original issue reported on code.google.com by joseph...@gmail.com on 23 Mar 2010 at 6:40