I think Judson, Ross wrote:
> It's a little frustrating working with time in Jess.  You can store a
> time as a java.util.Date, but then you can't compare it with <, >,
> etc...if you work with it as a long, then you can't call + and other
> math functions; they change the number into INTEGER.  If you work with
> time as ms/1000, then you lose a lot of accuracy.
> 
> Any suggestions on how best to handle time?
> 
> I have a few specific ones:
> 
> 1. Extend <, >, etc. to work with Comparable objects.

I like this idea very much. 

> 2. Instead of printing ExternalAddress and so forth when printing out
> fact lists, use an extra slot descriptor to indicate that toString()
> should be called on the object in the fact slot, and that used as the
> text to represent the object.
> 3. Extend + and other math functions to work with LONG values.


Yes, LONG should be a first-class type. This has been promised for
several releases now!



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

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