unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* testing arity
@ 2006-07-22 16:19 Jon Wilson
  2006-07-22 21:27 ` rm
  2006-07-23  5:04 ` tomas
  0 siblings, 2 replies; 7+ messages in thread
From: Jon Wilson @ 2006-07-22 16:19 UTC (permalink / raw)


Hi,
Is there a good way to determine the number of arguments that a given 
procedure will take?  I suppose I can look at
(source proc)
and extract the list of formals, and write a procedure which does this 
automatically, but I'd hate to reinvent the wheel.  Also, I'm not sure how 
well using source will work when we have optional or keyword arguments.

Also, on an unrelated note, is it possible to define values (as in (lambda 
() (values 1 2)) ) in terms of McCarthy's original seven lisp primitives? 
Or would this question be better asked somewhere else (like c.l.scheme)?
Regards,
Jon


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


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

end of thread, other threads:[~2006-07-24  1:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-22 16:19 testing arity Jon Wilson
2006-07-22 21:27 ` rm
2006-07-23  5:49   ` Jon Wilson
2006-07-23  5:04 ` tomas
2006-07-23  7:58   ` Neil Jerram
2006-07-23 22:50     ` Kevin Ryde
2006-07-24  1:01     ` Jon Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).