lilypond-user
[Top][All Lists]
Advanced

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

Re: Generating symbols from strings


From: Jay Vara
Subject: Re: Generating symbols from strings
Date: Sat, 27 Sep 2014 10:15:08 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)


> 
> Robin 
> 
> > The following seems to read out the value of abc:
> >  >  xyz = #(eval (string->symbol "abc") (interaction-environment))
> > 
> 
> Wow, that works! Thanks. 

Working with the idea from Robin, I was able to convert a string to a 
symbol and evaluate it. I tried to make this into a function. For some 
reason it is not working. In the following, the first definition of xyz, 
and the use of par in the 2nd format work fine.

The second definition of xyz using the function test is giving me the 
error: In expression ((eval # #)): Wrong type to apply: "parava". 
The eval itself should have evaluated to this string. 






reply via email to

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