[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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to