From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.lisp.guile.devel Subject: Re: How to detect a procedure Date: Mon, 29 Apr 2002 19:00:31 -0500 Sender: guile-devel-admin@gnu.org Message-ID: <0204291900310F.10649@locke.free-expression.org> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1020125050 10934 127.0.0.1 (30 Apr 2002 00:04:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2002 00:04:10 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 172L7p-0002qF-00 for ; Tue, 30 Apr 2002 02:04:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 172L6o-0004rw-00; Mon, 29 Apr 2002 20:03:06 -0400 Original-Received: from janus.hosting4u.net ([209.15.2.37]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 172L54-0004if-00 for ; Mon, 29 Apr 2002 20:01:18 -0400 Original-Received: (qmail 32007 invoked from network); 30 Apr 2002 00:01:16 -0000 Original-Received: from leo.hosting4u.net (HELO free-expression.org) (209.15.2.51) by mail-gate.hosting4u.net with SMTP; 30 Apr 2002 00:01:16 -0000 Original-Received: from locke.free-expression.org ([156.56.122.56]) by free-expression.org ; Mon, 29 Apr 2002 19:01:09 -0500 Original-To: bitwize@wizards-of-source.org, Bruce Korb X-Mailer: KMail [version 1.2] In-Reply-To: X-Rcpt-To: Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:560 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:560 On Sunday 28 April 2002 23:52, bitwize@wizards-of-source.org wrote: > On Sun, 28 Apr 2002, Bruce Korb wrote: > 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. I don't think this captures the spirit of the original question. If you do this, you rely on the evaluator checking for the existence of the binding - procedure? gets the actual object (it never sees the name). Or, if the name hasn't been bound it will error out (if the lookup throws an exception, that might be used). Lynn _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel