Or at least 5.1 ...
I have some definstanced classes with getter methods return longs. If I
have an LHS condition
.. (fact (longmethod 0)) ...
and indeed the getLongmethod() returns 0 then it turns out that because Jess
wants ints and not longs this pattern will not match. _However_ if I rewrite it as
.. (fact (longmethod ?val&: (= ?val 0)))
it matches. While this is understandable (Java casting is at work) it is somewhat
inconsistent and makes life difficult (I have a lot of rules like this). Two ways
of fixing this would be:
* Allow long integer literals in the Syntax --- e.g. 0L
* Modify rete matching to promote types where necessary ...
Thoughts ??
Tnx
Alan
---------------------------------------------------------------------
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]
---------------------------------------------------------------------