Re: getting the argument list of a procedure

2015-03-09 Thread anders . vinjar
> "D" == David Nalesnik: D> I don't understand what is happening when I attempt to define the D> macro in the LY file, though. This is a bug coming from use'ing (ice-9 syncase) - which guile-1.8 depends on for access to syntax-rules & friends - in lilypond. Despite the error the comp

Re: getting the argument list of a procedure

2015-03-06 Thread David Nalesnik
Hi Anders, On Thu, Mar 5, 2015 at 1:42 PM, wrote: > > "D" == David Nalesnik writes: > > D> What you are suggesting seems to be analogous to what is already > D> done for the functions on the Scheme functions documentation page > D> I referenced earlier. > > Ah, but you've got all

Re: getting the argument list of a procedure

2015-03-05 Thread David Nalesnik
Hi Anders, On Thu, Mar 5, 2015 at 1:42 PM, wrote: > > > 'procedure-source will return the body of any defined function, then > just grab the cadr of this to get the lambda-list: Very true! Thanks, David ___ lilypond-user mailing list lilypond-user@gn

Re: getting the argument list of a procedure

2015-03-05 Thread anders . vinjar
> "M" == Mattes writes: M> I doubt that guile (> 2.0) keeps track of the formal parameter M> names. If you're referring to the lambda-list of a procedure, i would be very surprised if guile didn't. Cheers, -anders ___ lilypond-user mai

Re: getting the argument list of a procedure

2015-03-05 Thread anders . vinjar
> "D" == David Nalesnik writes: D> What you are suggesting seems to be analogous to what is already D> done for the functions on the Scheme functions documentation page D> I referenced earlier. Ah, but you've got all you need there already it seems. 'procedure-source will return

Re: getting the argument list of a procedure

2015-03-05 Thread David Nalesnik
Hi Anders, On Thu, Mar 5, 2015 at 2:47 AM, wrote: [...] If you've got access to the actual scheme-code where the definitions > takes place it should be possible to use rewrite macros. > > Something along the lines below would give you a table (an ordinary list > here) 'procargstable keeping the

Re: getting the argument list of a procedure

2015-03-05 Thread Paul Morris
b::has-interface and grob::name) are in scm/output-lib.scm. There may be others in other files. In that file it's all "define-public" (no specialized macros). Cheers, -Paul -- View this message in context: http://lilypond.1069038.n5.nabble.com/getting-the-argument-list-of-a-proc

Re: getting the argument list of a procedure

2015-03-05 Thread anders . vinjar
Hi David. D> However, this feels a little hacky to me, and I'm hoping that D> there's some better technique available to get at the names D> assigned to the arguments. If you've got access to the actual scheme-code where the definitions takes place it should be possible to use rewrite

Re: getting the argument list of a procedure

2015-03-04 Thread David Nalesnik
On Wed, Mar 4, 2015 at 3:49 PM, Mattes wrote: > > Am Mittwoch, 04. März 2015 22:35 CET, David Nalesnik < > david.nales...@gmail.com> schrieb: > > > Hi list, > > > > I would like to be able to return the argument list of a Scheme function, > > say as a list of symbols. So, for example, in the cas

Re: getting the argument list of a procedure

2015-03-04 Thread David Nalesnik
Hi Orm, On Wed, Mar 4, 2015 at 3:54 PM, Orm Finnendahl < orm.finnend...@selma.hfmdk-frankfurt.de> wrote: > Dear David, > > Am Mittwoch, den 04. März 2015 um 15:35:46 Uhr (-0600) schrieb David > Nalesnik: > > > > I would like to be able to return the argument list of a Scheme function, > > say as

Re: getting the argument list of a procedure

2015-03-04 Thread Orm Finnendahl
Dear David, Am Mittwoch, den 04. März 2015 um 15:35:46 Uhr (-0600) schrieb David Nalesnik: > > I would like to be able to return the argument list of a Scheme function, > say as a list of symbols. I'm not sure I understand what exactly you're looking for. In scheme, you can assign a name to all

Re: getting the argument list of a procedure

2015-03-04 Thread Mattes
Am Mittwoch, 04. März 2015 22:35 CET, David Nalesnik schrieb: > Hi list, > > I would like to be able to return the argument list of a Scheme function, > say as a list of symbols. So, for example, in the case of > grob-interpret-markup, I would like to retrieve '(grob text). There are a >

getting the argument list of a procedure

2015-03-04 Thread David Nalesnik
Hi list, I would like to be able to return the argument list of a Scheme function, say as a list of symbols. So, for example, in the case of grob-interpret-markup, I would like to retrieve '(grob text). There are a number of functions for determining information about procedures listed here: ht