[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme optional arguments, number-list
From: |
David Kastrup |
Subject: |
Re: Scheme optional arguments, number-list |
Date: |
Sat, 23 Apr 2016 21:34:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Thomas Morley <address@hidden> writes:
> my-time =
> #(define-music-function (v1 v2)(scheme? scheme?)
> #{ \time $v1 $v2 #})
> %% doesn't work
> {
> %% \time redefined with comma-separated list
> \my-time 2,2,1 5/8
> g'8 8 8 8 8
> %% or
> \my-time 1,1,2,1 5/8
> g'8 8 8 8 8
> }
>
> A problem with the function-macros?
A problem with the argument types. If a number is accepted, a number is
parsed. Number lists are only tried when a number as such does not
work. Because otherwise a single-element list would be impossible to
specify.
--
David Kastrup