Re: [frogs] Adding docstring support to def-grace-function |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: frogs@xxxxxxxxxxx
- Subject: Re: [frogs] Adding docstring support to def-grace-function
- From: "Patrick McCarty" <pnorcks@xxxxxxxxx>
- Date: Thu, 8 Jan 2009 12:11:30 -0800
- Cc: lily-devel <lilypond-devel@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=m+f/BBRCtt866BX0Lm02TmNsAqqQ1StWVtFiiHh304o=; b=Wa0+7AlAHU+6WR1rejUalwx+kuWKVsp32RFVmFKYniklMsEPJ+mPG9/ra2BhfIwH+b mwnDyeQUoSLAAs6h1MJHHAjJQ+Q1ol0FH+owZ+tGT9Kcxwzo22fLbZnaV+vpNkSPXXwN ZQmIjrc1g1CrYqhHcmolr9DBhcZrmDXk3vy4Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=l8Mu+cz8VBKumF+Hg8mbcWEYn0pCgQIQpDQLLd/rCiLSbslp2+s0skustOz4QhfMvn zipYwohBZAJ4ZyFvqa8MSpTvl3Y8qLIOawpNSRlkPAvuhTKWVDBUtUP9JZwY9lT3E6+D EzdVRlVbd+bWmRXZpwS6obtmmtppl3r+rQcZE=
On Wed, Jan 7, 2009 at 12:58 PM, Carl D. Sorensen <c_sorensen@xxxxxxx> wrote:
>
> On 1/7/09 12:03 PM, "Patrick McCarty" <pnorcks@xxxxxxxxx> wrote:
>>
>>> A syntax that would not require a convert-ly rule would be
>>>
>>> acciaccatura =
>>> #(def-grace-function startAcciaccaturaMusic stopAcciaccaturaMusic
>>> (_i "Here is the docstring."))
>>>
>>> because the docstring argument can be written as an optional argument
>>> in the macro definition for def-grace-function. So adding a docstring
>>> is a syntax addition, not a change, and no convert-ly rule is needed.
>>
>> I see a few Scheme procedures that use the #:optional keyword. This
>> is what you are referring to, right?
>
> It's not what I was referring to, but it may have been what I should have
> been referring to.
>
> What I was referring to is something that Nicolas used in his redefinition
> of define-music-function. You can define a procedure
>
> (define (my-proc arg1 arg2 . optional-arguments) (...))
>
> and call it with
>
> (my-proc 1 2 3 4 5 6 7 8)
Okay, thanks Carl. I think it will be easier to use this construct.
I will take a look at it soon.
-Patrick
---
----
Join the Frogs!