jess-users  

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

Jan Willem Lokin
Wed, 02 Dec 2009 09:58:37 -0800

So it seems that I got bitten by the fact that the dot is subtly
overloaded. Small surprise, since I never use dots in names. Would it
be an idea to have some mode of operation where dots in names are
flagged as warnings? Or is this a practical impossibility?
Alternatively it would already be convenient if an option of this sort
would be available in the Eclipse Jess editor.

-+- JW -+-

PS - I don't see your modified version...

2009/12/2 Friedman-Hill, Ernest <ejfr...@sandia.gov>:
> 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
--------------------------------------------------------------------
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.
--------------------------------------------------------------------