lilypond-user
[Top][All Lists]
Advanced

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

Re: Circular dependencies - Deadlock


From: David Kastrup
Subject: Re: Circular dependencies - Deadlock
Date: Thu, 22 Jun 2017 06:39:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> On 21.06.2017 22:32, Michael Käppler wrote:
>> Honestly I did not try it, but I am quite sure that it would be easy
>> to implement a IFDEF mechanism like in C preprocessing with a few
>> lines of Scheme, however.
>
> That won’t be Scheme involved there.  IIRC \include statements are
> resolved even before parser (and lexer?) step in.  David K. will be
> able to say more.

\include is expanded in the lexer but there are a whole lot of setups
where multiple includes are perfectly reasonable even without thinking
about recursion: for example, you can organize a typical piece by
defining variables and including a file with a score skeleton, and
include several scores in that manner while creating one book.

I don't really see this as calling for changes.  If you want to create
utility files to be included at most once, you can try working with
guards like it is customary for C/C++ include files.

-- 
David Kastrup



reply via email to

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