Re: JESS: Facts and modules

2005-09-30 Thread Henrique Lopes Cardoso
definition (e.g. (deftemplate m::the-facts ...)), if that module is the current module, is irrelevant. Thanks. Henrique [EMAIL PROTECTED] wrote: I think Henrique Lopes Cardoso wrote: In the Jess documentation (more specifically in The Jess Language section) the following is written

Re: JESS: Using not and and

2005-10-19 Thread Henrique Lopes Cardoso
--- [EMAIL PROTECTED] wrote: I think Henrique Lopes Cardoso wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Hello, I was trying to do something like this: As is often the case, details matter. There's nothing wrong with the code you've shown; if there's a problem, it's

JESS: Using multifields in LHS

2005-10-20 Thread Henrique Lopes Cardoso
Hi, I am having trouble in getting to multifields and strings. I was trying to evaluate the contents of a string in a rule's LHS: (assert (a nice string)) (defrule r1 (a ?x) ?s - (explode$ ?x) ?s - (nice ?what) = (printout t ?what crlf) ) I know I cannot do this. But I cannot

JESS: Converting from/to strings

2005-10-21 Thread Henrique Lopes Cardoso
Hi, I have two problems. --- The first: I have a string which contains an atom. How do I convert it to an atom? I tried this,which works: (bind ?string henrique) (nth$ 1 (explode$ ?string)) Is there a simpler way? --- The second: How do I convert a fact-id into a string? This

Re: JESS: Converting from/to strings

2005-10-25 Thread Henrique Lopes Cardoso
stuff). That code is expecting a string in a particular slot, which is why I was trying to convert a certain fact to a string. Otherwise I would have to change the code... May be that is a good thing to do! Henrique [EMAIL PROTECTED] wrote: I think Henrique Lopes Cardoso wrote: (defrule r1

Re: JESS: String to Symbol

2005-11-03 Thread Henrique Lopes Cardoso
How about: (bind ?string (call string1 concat string2)) (bind ?symbol (sym-cat ?string)) (build (str-cat (assert ( ?symbol 10 Henrique --- [EMAIL PROTECTED] wrote: I am sorry, I should have been more detailed. What I want to do is somethink like this: (bind ?string (call string1 concat