Return-Path: [EMAIL PROTECTED]
Return-Path: <[EMAIL PROTECTED]>
Received: from cs.concordia.ca (kanthim@orchid [132.205.45.61])
by pollen.cs.concordia.ca (8.8.8/8.8.8) with ESMTP id JAA08713
for <kanthim>; Fri, 16 Oct 1998 09:04:40 -0400 (EDT)
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Fri, 16 Oct 1998 09:04:40 -0400
From: "Venkat" <[EMAIL PROTECTED]>
Hi Ernest,
I was on Jess 4.0.
I have been postponing my switch to 4.1 - i will do that right
now !!
Since the foll. example runs in 4.1, i should have no problems in
getting my code running.
Thanks,
Venkat
<<<< Ernest wrote <<<<<<<<<<<<<
The following runs as I'd expect in Jess 4.1 final:
(deftemplate OBJECT (multislot names))
(assert (OBJECT (names A B C)))
(defrule test-rule
(OBJECT (names $?x))
=>
(bind ?size (length$ $?x))
(bind ?first (nth$ 1 $?x))
(printout t ?size " " ?first crlf))
;; prints "3 A"
Can you be more specific?
I think Venkat wrote:
>
> Hi,
>
> The following multifield functions work well under CLIPS but
> not with JESS - however, no errors are reported in Jess.
> Code snippet :
> ...
>
> (OBJECT (names $?x)) - defined suitably with multislot for names
> ...
> ...
>
> (bind ?size (length $?x))
>
> (bind ?first-name (nth 1 $?x))
>
> I have tried (bind ?size (length$ ?x)) which gives the same response - no
> errors reported but does not work as expected.
>
> Any information will be useful.
>
> Venkat
---------------------------------------------------------------------
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]
---------------------------------------------------------------------