From: Bill Gribble <grib@linuxdevel.com>
Cc: Bruce Korb <bkorb@pacbell.net>, guile-devel@gnu.org
Subject: Re: How do I determine if a function is defined?
Date: 28 Apr 2002 14:58:06 -0500 [thread overview]
Message-ID: <1020023889.25790.60.camel@flophouse> (raw)
In-Reply-To: <E171u9a-00048w-00@vsynth>
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.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2002-04-28 19:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-28 18:05 How do I determine if a function is defined? Bruce Korb
2002-04-28 19:15 ` Clinton Ebadi
2002-04-28 19:58 ` Bill Gribble [this message]
2002-04-28 19:09 ` Bruce Korb
2002-04-29 1:28 ` Rob Browning
2002-04-29 1:34 ` Bruce Korb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1020023889.25790.60.camel@flophouse \
--to=grib@linuxdevel.com \
--cc=bkorb@pacbell.net \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).