On Mar 26, 2007, at 5:13 PM, Helge Hartmann wrote:

Hello!

The watch function is realy helpful for debugging. But not when I use Java Objects. Is it possible to get teh value of the toSting() method instead of the object type?


Not presently, no. That's just what jess.Value.toString() returns when the Value is a JAVA_OBJECT type. This same routine is used in many places in Jess.

If Value.toString() returned the result of calling toString() on the object, then although that would be nice in some places, it would be confusing in others, for example when toString() returned something that looked like a primitive type. Further, Jess relies on this String being invalid XML and being an unparseable token in Jess to prevent weird errors if someone tries to write Java objects out as XML, or call save-facts on them.

Anyway, this has been brought up before; it just hasn't gotten high enough up in the queue for anyone to design a complete solution.

---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550                 http://www.jessrules.com

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to