[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] optional arguments

From: Steve Tell
Subject: Re: [Q] optional arguments
Date: Tue, 31 Oct 2000 14:40:16 -0500 (EST)

ooh, one I can answer...

        (use-module (ice-9 optargs))

and then use either "define*" or "define*-public" as appropriate

The only docs I know of on this are in the comments in ice-9/optargs.scm

It can also do keyword-introduced arguments, which are often even nicer
than simple optional args.

On Tue, 31 Oct 2000, Lars J. Aas wrote:

> Is there a way to let a guile function (defined in scheme-
> space with define) have optional arguments the way a gsubr has
> optional arguments before the final 'rest' list, or is the
> (define (func arg1 arg2 . rest) ... form the only way to have
> optional arguments for a scheme function?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]