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: Johan Vromans
Subject: Re: Using one identifier or another
Date: Fri, 22 Aug 2008 21:37:59 +0200

[Quoting Gilles THIBAULT, on August 22 2008, 18:11, in "Re: Using one identi"]
> Sorry i don't really understand this parser behaviour but i only
> know i have to care with it ...

Ah, that's something I understand...

The parser compiles the first expression:

  aNotes = \relative c' { c1 e g }

Now, to make sure that the expression is finished, it looks ahead a
bit. There it sees the beginning of a scheme expression

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

This expression is then compiled and executed immedeately. Now the
parser completes handling the first expression. 
As a result, aNotes gets its value AFTER the scheme expression is
executed. Too late...

-- Johan




reply via email to

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