guile-devel
[Top][All Lists]
Advanced

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

Re: How do I determine if a function is defined?


From: Bill Gribble
Subject: Re: How do I determine if a function is defined?
Date: 28 Apr 2002 14:58:06 -0500

On Sun, 2002-04-28 at 14:15, Clinton Ebadi wrote:
> Try (if (procedure? 'mumble) (mumble)). Remember to quote the variable you 
> want to test!

No, (procedure? 'mumble) is always #f, because 'mumble is a symbol, not
a procedure, even if there is a procedure bound to the variable mumble. 

What are you trying to do in the larger scheme of things?  It's pretty
darn unusual to really need to write code that doesn't know which
symbols are bound.  And sketchy. 

b.g.









reply via email to

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