[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: helper function that should take a list argument doesn't do anything
From: |
David Kastrup |
Subject: |
Re: helper function that should take a list argument doesn't do anything |
Date: |
Fri, 09 Nov 2012 23:52:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Actually, if you were using 2.17.6, you could just write
>
> staffdist =
> #(define-music-function (parser location distances)
> (list?)
> #{
> \overrideProperty
> Score.NonMusicalPaperColumn.
> line-break-system-details.alignment-distances
> #distances
> #})
>
> since it was easy enough extending \overrideProperty for dealing with
> subproperties that it would have been pointless not to support them.
Oh, and I'd use number-list? instead of just list? as a predicate. The
more generic your predicate is, the stranger the results for bad uses of
the function will become. If LilyPond sees that some predicate is
wrong, it pulls the plug on the whole function call and substitutes a
dummy value instead. Usually much more straightforward than if a value
gets accepted and problems occur afterwards.
--
David Kastrup
- Re: helper function that should take a list argument doesn't do anything, (continued)
- Re: helper function that should take a list argument doesn't do anything, David Kastrup, 2012/11/10
- Re: helper function that should take a list argument doesn't do anything, Marc Hohl, 2012/11/11
- Re: helper function that should take a list argument doesn't do anything, Werner LEMBERG, 2012/11/10
- Re: helper function that should take a list argument doesn't do anything, Janek Warchoł, 2012/11/11
- Re: helper function that should take a list argument doesn't do anything, David Kastrup, 2012/11/09
- Re: helper function that should take a list argument doesn't do anything, David Kastrup, 2012/11/09
- Re: helper function that should take a list argument doesn't do anything,
David Kastrup <=
- Re: helper function that should take a list argument doesn't do anything, Janek Warchoł, 2012/11/10
- Re: helper function that should take a list argument doesn't do anything, David Kastrup, 2012/11/10
- Re: helper function that should take a list argument doesn't do anything, Janek Warchoł, 2012/11/11