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 "string2"))
(bind ?symbol (sym-cat ?string))
(assert ?symbol 10)
This code does not work because the first argument of the assert function
is expected to be a symbol, and not a variable containing a symbol. Is
there any way to do that, or the first parameter can not be built
dynamically?
Thanks a lot.
Fernando
I think [EMAIL PROTECTED] wrote:
How can I convert a string into a symbol?
In Java,
String string = "whatever";
Value symbol = new Value(string, RU.SYMBOL);
In Jess,
(bind ?string "whatever")
(bind ?symbol (sym-cat ?string))
--------------------------------------------------------------------
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]
--------------------------------------------------------------------