Thanks David,

This is a new bug. It's very similar to the RTFM one from yesterday,
except this time there's a missing 'resolveValue()' in jess
itself. While I was at it, I searched and found a similar one in
another function in the same file. So to fix this, in
jess/MultiFunctions.java at lines 72 and 308, there are bare
ValueVector.get(n) calls which should be adorned with resolveValue()s;
i.e., line 308 should look like:

    Value target = vv.get(1).resolveValue(context);

Interestingly enough, this bug effects -not- the handling of the
multifield argument to member$, but the first sintgle-field argument.

I think David E. Young wrote:
> 
> The following code fragment fails under Jess 5.0a5, but functions
> correctly with Jess 4.4. Evaluating the deffunction memberp() produces
> incorrect behavior; invoking member$ directly works:
> 
> (deffunction memberp (?value $?allowed)
>   "See if 'value' is a member of multi-list 'allowed'"
>   (member$ ?value $?allowed))
> 
> (printout t "memberp(): "
>           (memberp ENT-EQPT (create$ ENT-EQPT RTRV-EQPT))
>           crlf)
> 
> (printout t "member$(): "
>           (member$ ENT-EQPT (create$ ENT-EQPT RTRV-EQPT))
>           crlf)
> 
> Regards,
> 
> -- 
> -----------------------------------------------------------------
> David E. Young
> Fujitsu Network Communications  "The fact that ... we still
> ([EMAIL PROTECTED])    live well cannot ease the pain of
>                                  feeling that we no longer live nobly."
>                                   -- John Updike
> "Programming should be fun,
>  programs should be beautiful"
>   -- P. Graham
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 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