unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: bitwize@wizards-of-source.org
Cc: guile-devel@gnu.org
Subject: Re: How to detect a procedure
Date: Mon, 29 Apr 2002 06:52:28 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0204290645320.32203-100000@phantom.h07.org> (raw)
In-Reply-To: <3CCC5D23.9727BCCB@pacbell.net>

On Sun, 28 Apr 2002, Bruce Korb wrote:

> 
> OK.  If:
> 
>   (if (procedure? 'mumble) (mumble))
> 
> doesn't work, what does?  I keep trying different things
> to no avail.  This is very, very frustrating.

First of all, this type of thing is better off posted to guile-user 
instead of guile-devel (where nitty-gritty implementation details are 
mainly discussed).

Secondly, the answer to your query is, procedures are stored in the same 
namespace as ordinary variables; (procedure? mumble) returns #t if mumble 
names a prevoiusly defined procedure. There is no need to quote, e.g. 
'mumble, or to use the Common LISP convention #'mumble.

Note that this applies to primitives, too; (procedure? procedure?) returns 
#t. :)

-- 
Jeffrey T. Read
"LOBSTER STICKS TO MAGNET!"


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2002-04-29  4:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-28 20:35 How to detect a procedure Bruce Korb
2002-04-29  4:52 ` bitwize [this message]
2002-04-29  9:45   ` rm
2002-04-30  0:00   ` Lynn Winebarger
2002-04-30  0:36     ` Bruce Korb
2002-04-30 13:50       ` Rob Browning
2002-05-01  1:22         ` Bruce Korb
2002-05-01  2:35           ` Rob Browning
2002-05-01  2:46             ` Lynn Winebarger
2002-05-01  3:39               ` Rob Browning
2002-05-01 21:36                 ` Bruce Korb
2002-05-01 22:18                   ` Neil Jerram

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=Pine.LNX.4.44.0204290645320.32203-100000@phantom.h07.org \
    --to=bitwize@wizards-of-source.org \
    --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).