On Nov 9, 2006, at 8:43 AM, Helge Hartmann wrote:

Using Enums in shadow facts now works finde, but I still get errors, when using Enums in a constructor and trying to create a java object. There is a constructor

..
    (bind ?b (new Account Type.EXTENDED))

As I said before,

in Jess 7, importing a class creates Jess functions that return the value of each public static variable in the class.

So Type.EXTENDED is a function in Jess; you need to write

(bind ?b (new Account (Type.EXTENDED)))

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