lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating symbols from strings


From: Robin Bannister
Subject: Re: Generating symbols from strings
Date: Fri, 26 Sep 2014 22:29:23 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Jay Vara wrote:
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.

Maybe you are reading out the symbol name (which is abc).

What do I need to modify in the assignment of string->symbol to get it to
be equivalent to xyz = \abc

The following seems to read out the value of abc:
>  xyz = #(eval (string->symbol "abc") (interaction-environment))


Hope this helps! Maybe the blind can lead the blind.

Cheers,
Robin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]