Simon Albrecht <[email protected]> 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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to