Hi David

I think David E. Young wrote:
> 
> Greetings. The following code works as (at least I) expected in CLIPS
> 6.05, yet fails within Jess:
> 

Simplified version (note improved 4.1b4 error reporting!)

Jess> (deffunction has-rocky (?a $?rest) (member$ ?a $?rest))
TRUE
Jess> (has-rocky rocky boris rocky sherman)
Rete Exception in routine Value::listValue
        while executing deffunction has-rocky.
        Message: Not a list:boris type = 1 at line 3:
        ( has-rocky rocky boris bullwinkle sherman ) .
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at jess.ReteException.<init>(Compiled Code)
        at jess.Value.typeError(Compiled Code)
        ...


Anyway: this is not so much a bug as a missing feature: Jess isn't
treating the multivariable argument specially in any way, while CLIPS
is bundling up the second through last arguments and creating a
multifield out of them. No reason why Jess can't do the same; I'll try
to take care of it for 4.1b4.

4.1b4 is looking mighty slick, by the way: it's a good 15-30% faster
(!) and at the same time, the core code is 10% smaller. It's got a
-lot- of frequently-requested features, including dynamic salience,
default-dynamic in deftemplates, more and better documentation, better
error reporting, etc.

---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (510) 294-2154
Sandia National Labs                FAX:   (510) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to