jess-users  

RE: JESS: Re: Mysterious behavior when using Java5 enums in Jess

Friedman-Hill, Ernest
Wed, 02 Dec 2009 08:24:30 -0800

Hi Jan,

No mystery, just a few subtle things wrong. Remember that MyEnum.BIM is always 
just a symbol, while (MyEnum.BIM) is a function that returns the object BIM in 
the enumeration MyEnum (given that you've imported MyEnum). The version of the 
program with enums should NEVER use a bare "MyEnum.BIM" without the 
parentheses. The slightly modified version below works as you'd expect
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users y...@address.com'
in the BODY of a message to majord...@sandia.gov, NOT to the list
(use your own address!) List problems? Notify owner-jess-us...@sandia.gov.
--------------------------------------------------------------------