I think Greg Biegel wrote: > I want to call a constructor method on a Java > object from within Jess, this method takes a string argument. I need to > call the constructor from Jess, passing it a global variable which contains > a double. My question is how do I convert this double to a string so that I > can pass it safely to the constructor?
You can either use Jess's "str-cat" function, which converts any argument to a String, or you could use the String.valueOf() method. (new Widget (str-cat ?*d*)) or (new Widget (call String valueOf ?*d*)) --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs 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] --------------------------------------------------------------------