lilypond-devel
[Top][All Lists]
Advanced

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

music identifier scopes


From: Han-Wen Nienhuys
Subject: music identifier scopes
Date: Thu, 22 Apr 2004 22:04:23 +0200

address@hidden writes:
> Hello,
> With current CVS, the following file issues an guile error:
> 
> %%% bar.ly:
> foo=\notes { c' d' e' }
> #(display foo)
> \score { \notes { \foo }}
> %%%
> 
> address@hidden: 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:

I think it is due to the lookahead of the parser.  The assignment is
only done after #(display .. ) is evaluated.
-- 

 Han-Wen Nienhuys   |   address@hidden   |   http://www.xs4all.nl/~hanwen 





reply via email to

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