[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Generating symbols from strings
From: |
Jay Vara |
Subject: |
Generating symbols from strings |
Date: |
Thu, 25 Sep 2014 19:15:13 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
In the following program, I set xyz to the variable abc using scheme
string->symbol as well as the usual \abc.
Instead of giving the same value for xyz, the first one sets it to string
"abc" and the second sets it to value of abc.
What do I need to modify in the assignment of string->symbol to get it to
be equivalent to xyz = \abc
\version "2.18.2"
abc = IamJustAText
xyz = #(string->symbol "abc")
#(format #t "1) abc ~a xyz ~a ~%" abc xyz)
xyz = \abc
#(format #t "2) abc ~a xyz ~a ~%" abc xyz)
- Generating symbols from strings,
Jay Vara <=