[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getting the argument list of a procedure
From: |
Mattes |
Subject: |
Re: getting the argument list of a procedure |
Date: |
Wed, 04 Mar 2015 22:49:55 +0100 |
User-agent: |
SOGoMail 2.2.16 |
Am Mittwoch, 04. März 2015 22:35 CET, David Nalesnik <address@hidden> 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
> number of functions for determining information about procedures listed
> here:
> http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Procedure-Properties.html
> but, I see nothing to return an argument list.
Hmm, procedure-properties will give you some info, try:
(cdr (assoc 'arity (procedure-properties open)))
> How would I go about doing
> this?
I doubt that guile (> 2.0) keeps track of the formal parameter names.
Cheers, Ralf Mattes
>
> Thanks!
> David
- getting the argument list of a procedure, David Nalesnik, 2015/03/04
- Re: getting the argument list of a procedure,
Mattes <=
- Re: getting the argument list of a procedure, Orm Finnendahl, 2015/03/04
- Re: getting the argument list of a procedure, David Nalesnik, 2015/03/04
- Re: getting the argument list of a procedure, anders . vinjar, 2015/03/05
- Re: getting the argument list of a procedure, Paul Morris, 2015/03/05
- Re: getting the argument list of a procedure, David Nalesnik, 2015/03/05
- Re: getting the argument list of a procedure, anders . vinjar, 2015/03/05
- Re: getting the argument list of a procedure, David Nalesnik, 2015/03/05
- Re: getting the argument list of a procedure, David Nalesnik, 2015/03/06