Hi,
just a question about strings and " : I want to store a string and fetch it
from a Java program. This string contains some ", as it is a subset of HTML
tags (ie : <a href="link"> ...)
I bound a variable to this string : (bind ?a "<a href \"link\">) and stored
it : (store a-tag ?a)
If I printout it : (printout t ?a t) , I get : <a href="link">, which is
what I'm waiting for. But in my java program, when I fetch this a-tag, I get
<a href=\"link\">.
I must admit that I fetch somtehing that IS a string but that could be
something else, so I tried just to toString the value I got. This is the
point, as if I use the stringValue method, I just get what I expected, but
as I don't really know (in this part of my program) if it will be a String
or a float, I prefer to send the result as a String to the caller.
In the Value class, the toString transform a String by adding a \ before
each " :
case RU.STRING:
return "\"" + escape((String) m_objectval) + "\"";
Is this a normal behavior? does it have an impact if the String is not
escaped?
Emmanuel Lecharny, IKTEK
06 08 33 32 61, www.iktek.com <http://www.iktek.com>
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De
la part de [EMAIL PROTECTED]
Envoye : mercredi 20 juin 2001 16:18
A : Jess Mailing List
Objet : JESS: Progress report
Hi Folks,
Thought I would let you in on my current activities and the release
plan for Jess 6.0a7.
One of the major features in my original plan for Jess 6 was fully
nestable, tree-structured rule left-hand-sides: (and), (or), and (not)
conditional element groups could be used to build complex logical
structures. Given the way Jess is designed, this turned out to be
harder than I thought. Many of you know that there have been
undocumented (and) and (or) conditional elements in Jess 6 for several
releases now. They worked well in simple cases, but didn't work well
when combined with (not) and (exists) CEs.
For the 6.0a7 release, the original plan is finally realized. I have
fully nestable CEs working perfectly -- right now all that's left to do
is to update the documentation. This will be done in short order, so
you can expect to see Jess 6.0a7 come out next week sometime.
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [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 (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]
---------------------------------------------------------------------