guile-user
[Top][All Lists]
Advanced

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

Re: Scheme 102


From: Peter C. Norton
Subject: Re: Scheme 102
Date: Wed, 28 Nov 2001 11:01:37 -0800
User-agent: Mutt/1.2.5i

Isn't it also possible in guile to catch and handle errors?

On Wed, Nov 28, 2001 at 07:36:19PM +0100, Jorgen Schaefer wrote:
> address@hidden writes:
> 
> > On Wed, Nov 28, 2001 at 11:45:58AM -0600, address@hidden wrote:
> > > 
> > > hello,
> > > 
> > > is it possible to dynamically discover the number of parameters to a
> > > function?
> > 
> > Would this be what you are looking for?
> > 
> > | bash-2.05$ guile
> > | guile> (arity display)ay)
> > | 1 required and 1 optional argument.
> > | guile> (arity map)    
> > | 2 or more arguments.
> > | guile> 
> 
> I guess he's looking more for the programmatic way to get that
> information...
> 
> 
> guile> (procedure-property display 'arity)
> (1 1 #f)
> guile> (procedure-property map 'arity)
> (2 0 #t)
> 
> Greetings,
>         -- Jorgen
> 
> -- 
> ((email . "address@hidden")       (www . "http://forcix.cx/";)
>  (irc   . "address@hidden (IRCnet)") (gpg .    "1024D/028AF63C"))
> 
> _______________________________________________
> Guile-user mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/guile-user

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



reply via email to

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