lilypond-devel
[Top][All Lists]
Advanced

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

Re: comment in #{ ... #}


From: Reinhold Kainhofer
Subject: Re: comment in #{ ... #}
Date: Fri, 22 Oct 2010 21:10:05 +0200
User-agent: KMail/1.13.5 (Linux/2.6.35-22-generic; KDE/4.5.2; i686; ; )

Am Freitag, 22. Oktober 2010, um 20:30:29 schrieb Werner LEMBERG:
> Interesting.  This
> 
>   T = #(define-music-function (parser location music) (ly:music?)
>         #{
>            \times 2/3 $music   % $
>         #}
>       )
> 
> does *not* work.  Looks like a bug...

It seems like the way to replace all $xxxx variables in the #{ ... #} section 
is not foolproof: It tries to replace everything starting with $, even if it 
is inside a comment. In particular, try this out:

   T = #(define-music-function (parser location music) (ly:music?)
         #{
            \times 2/3 $music   % $m
         #}
       )
This complains about Unbound variable: m

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

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