JESS: [Q] Using (bind ...) function in JESS

"GMail (KU)" <[email protected]> Tue, 15 Feb 2011 09:31:38 -0600
Newsgroups gmane.comp.java.jess
Message-ID <24086_1297789331_p1FGt9mt025597_C7EA0434-6096-4BD3-896E-77CE8F720D24@gmail.com>
Dear all,

While following the "Jess in action" book to learn JESS, I run into a question.

On page 207 of the book, there is one line of code that I cannot understand fully. The part of the Listing 13.1 has (bind ?s ?question " ") and I don't quite understand why the additional " " was used in this bind method.

I tried to see the effect of the additional " " by experimenting it in the JESS command line, but did not find any meaningful difference.
For example,
JESS prompt> (bind ?question "Hello")
JESS prompt> (bind ?s ?question " ")
JESS prompt> ?s ;; returns "Hello" without the space
JESS prompt> (bind ?question "Hello")
JESS prompt> (bind ?s ?question "123")
JESS prompt> ?s ;; returns only "Hello" without 123

Can any one explain when I need to use additional " " or any string in the bind method in JESS?

Thanks in advance.

Young-Jin Lee  



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