bug-lilypond
[Top][All Lists]
Advanced

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

Meta-Include


From: Will Oram
Subject: Meta-Include
Date: Mon, 11 Apr 2005 10:57:19 -0400

I wasn't very awake when I was coding some score files on a deadline. This is from bassoon1_sc.ly:

\include "english.ly"
\include "defs.ly"
\include "global.ly"

\include "bassoon1_sc.ly" % accidental self-reference!
[...]

I was rather confused when I put this in lilypond, and ended up waiting longer than 2 seconds for parsing to finish. Much longer. As in, it wouldn't stop. I realised eventually that I had an include file point to itself.

Also surprising is that lilypond didn't catch this. It's quite easier to fix than solving an NP-complete problem, of course -- i.e., write a program to evaluate whether input code goes into an infinite loop. Couldn't lilypond flip through during parsing checking for problem \includes?

Best,

focus on the wherefore
for in it lies the question
----------------------------------------------------------
                       _   |  WILL ORAM
ASCII ribbon campaign ( )  |  spamguy (at) foxchange . com
 - against HTML email  X   |  wro1 (at) cwru . edu
             & vCards / \  |
                           |  AIM spamguy21
----------------------------------------------------------
(ABOVE: Magnetic poetry #4)





reply via email to

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