lilypond-user
[Top][All Lists]
Advanced

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

Re: Dot-separated list as music function argument


From: Jan-Peter Voigt
Subject: Re: Dot-separated list as music function argument
Date: Tue, 08 Jul 2014 13:58:51 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Hi Simon,

I also stumbled sometimes ove this behaviour, but I think it is not a "real" bug. If the parser has a list? predicate, it looks for dot-notation. But if it gets a custom predicate, it will not do so.
Am I right, David?
IIUC some predefined predicates (list?, string?, ly:duration?, ly:pitch?, ...) are handled in a special way to allow shorter input, but this is not "seen" by the parser, if they are wrapped in a custom predicate.

HTH
Jan-Peter


Am 08.07.14 13:39, schrieb Simon Albrecht:
The 2.18 changes document says that #'(Staff Accidental) and Staff.Accidental were now interchangeable, however if I replace it in the second function call, I get errors (unexpected "." etc.). Is there a way to avoid this in the coding of the function or should it be considered a bug?




reply via email to

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