lilypond-user
[Top][All Lists]
Advanced

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

Re: Using one identifier or another


From: Gilles THIBAULT
Subject: Re: Using one identifier or another
Date: Fri, 22 Aug 2008 18:11:00 +0200


 aNotes = \relative c' { c1 e g }

 #(define dummy #f)

 #(if (not (defined? 'bNotes))
      (define bNotes aNotes))

 \score {
   \bNotes
 }

When the 'define dummy' is removed, it doesn't work anymore.

The doc say it is due to "parser lookahead" :
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Input-variables-and-Scheme#Input-variables-and-Scheme

Sorry i don't really understand this parser behaviour but i only know i have to care with it ...

Gilles




reply via email to

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