all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Arguments at runtime (reflection)?
@ 2011-05-28 21:45 PJ Weisberg
  2011-05-28 23:20 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: PJ Weisberg @ 2011-05-28 21:45 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a way to determine a function's argument list (or at least
the number of arguments it accepts) at runtime?

Thanks

-- 

-PJ



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Arguments at runtime (reflection)?
  2011-05-28 21:45 Arguments at runtime (reflection)? PJ Weisberg
@ 2011-05-28 23:20 ` Drew Adams
  2011-05-31 15:06   ` PJ Weisberg
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2011-05-28 23:20 UTC (permalink / raw)
  To: 'PJ Weisberg', 'help-gnu-emacs'

> Is there a way to determine a function's argument list (or at least
> the number of arguments it accepts) at runtime?

See `sub-arity' and `help-function-arglist' (its code).




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Arguments at runtime (reflection)?
  2011-05-28 23:20 ` Drew Adams
@ 2011-05-31 15:06   ` PJ Weisberg
  0 siblings, 0 replies; 3+ messages in thread
From: PJ Weisberg @ 2011-05-31 15:06 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs

On Saturday, May 28, 2011, Drew Adams <drew.adams@oracle.com> wrote:
>> Is there a way to determine a function's argument list (or at least
>> the number of arguments it accepts) at runtime?
>
> See `sub-arity' and `help-function-arglist' (its code).

Thanks!  I kinda wish there was one function that gave the info for C
functions and Lisp functions, but I can piece together what I need to
know from there. :-)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-31 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-28 21:45 Arguments at runtime (reflection)? PJ Weisberg
2011-05-28 23:20 ` Drew Adams
2011-05-31 15:06   ` PJ Weisberg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.