I'm sorry maybe I should have clarified my question better, what I meant was
what is the equivalent in JESS for CLIPS's 'allowed-symbols' slots.
In clips you can say
(deftemplate person
(gender (allowed-symbols male female)))

but in JESS I couldn't do that. Is there another way to achieve that in
JESS?

Thanks

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jason Morris
Sent: 29 December 2004 22:47
To: [email protected]
Subject: Re: FW: JESS: allowed-symbols


I think that portalguy wrote:
>>What is the equivalent of 'allowed-symbols' in jess?

See pp. 42-43 of Jess In Action for the list of allowed symbols.
According to that reference, a carat "^" is not allowed.  You can also
see the updated list at:
http://herzberg.ca.sandia.gov/jess/docs/70/language.html# Section 2.1.1

In general, and as a "best practice, I'd stick to using only "-" and
"_" as separators in symbols.

Cheers,
Jason
---------------------------------------------------------------
Jason Morris
Assistant Moderator - Jess Listserver
www.morristechnicalsolutions.com
[EMAIL PROTECTED]
phone/fax:  503.692.1088







On Wed, 29 Dec 2004 13:54:40 -0800, Jason Morris
<[EMAIL PROTECTED]> wrote:
>
>
> ------------------------
>
> Jason Morris
> Morris Technical Solutions
> [EMAIL PROTECTED]
> www.morristechnicalsolutions.com
> fax/phone: 503.692.1088
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of portalguy
> Sent: Wednesday, December 29, 2004 7:18 AM
> To: [email protected]
> Subject: JESS: allowed-symbols
>
> Hi,
> What is the equivalent of 'allowed-symbols' in jess?
> I'm trying to define a template with a slot that has enumeration.
>
> (deftemplate Living_Thing)
> (deftemplate Person extends Living_Thing
> (slot ID (type integer) (default 1))
> (slot gender (allowed-symbols nil male female))
> )
>
> Thanks
>
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
>
>




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





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