lilypond-devel
[Top][All Lists]
Advanced

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

Re: softcoding accepts_list_


From: Han-Wen Nienhuys
Subject: Re: softcoding accepts_list_
Date: Mon, 13 Nov 2006 13:15:27 +0100
User-agent: Thunderbird 1.5.0.8 (X11/20061107)

Erik Sandberg escreveu:
hi,

I'm attempting to softcode \accepts and friends. Should the order of \accepts calls be significant in absence of appropriate \defaultchild? I.e., if we have

\layout {
\context {\Score  \accepts "Foo" \accepts "Bar" }
\context {\name Foo \accepts "Baz" }
\context {\name Bar \accepts "Baz" }
}

\new Score \new Baz { c d e }

.. then the path to Baz is ambiguous. Should we ideally throw a warning and randomly pick either foo or bar, or should the order be defined by the order of the \accepts calls?

I think it's best to use both: \defaultchild should always have preference, but in absence, the order is signifcant.


--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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