Neil Jerram <[EMAIL PROTECTED]> writes:
>
> And if you're not keen on parsing arity's output, see its definition
> in (ice-9 session) for the procedure properties that it queries to
> produce this.

(procedure-property obj 'arity) being the operative part, it gives a
list of "(required-count optional-count more?)".  "required-count"
many arguments required, plus up to "optional-count" further, or if
the "more?" flag is #t then an arbitrary number more.

I've been using it in my lint program (gratuitous plug).  A few funcs
defined in scheme code take "(foo bar . rest)" style rather than have
an "optional-count", eg. `atan'.


http://www.geocities.com/user42_kevin/guile-lint/index.html


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

Reply via email to