Hello,
With current CVS, the following file issues an guile error:
%%% bar.ly:
foo=\notes { c' d' e' }
#(display foo)
\score { \notes { \foo }}
%%%
[EMAIL PROTECTED]: lilypond /home/nicolas/tmp/bar.ly
...
/home/nicolas/tmp/bar.ly:1:1: While evaluating arguments to display in expression
(display foo):
/home/nicolas/tmp/bar.ly:1:1: Unbound variable: foo
However, if I change the file:
%%% bar2.ly:
foo=\notes { c' d' e' }
#(define-module (*anonymous-ly-1*))
#(display foo)
\score { \notes { \foo }}
%%%
then `foo' becomes accessible from top-level.
This is not understandable to me, since (*anonymous-ly-1*) seems to be
in both case the current-module...
Anyway, this is strange.
Nicolas
PS: thanks from ly:parse-string !!!
_______________________________________________
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel