From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I determine if a function is defined? Date: Sun, 28 Apr 2002 12:09:59 -0700 Organization: Home Sender: guile-devel-admin@gnu.org Message-ID: <3CCC4907.BE9DDCFB@pacbell.net> References: <3CCC39FF.C948A66E@pacbell.net> <1020023889.25790.60.camel@flophouse> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1020024399 4462 127.0.0.1 (28 Apr 2002 20:06:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Apr 2002 20:06:39 +0000 (UTC) Cc: Clinton Ebadi , 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 171uwR-00019r-00 for ; Sun, 28 Apr 2002 22:06:39 +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 171uw0-0004nr-00; Sun, 28 Apr 2002 16:06:12 -0400 Original-Received: from mta6.snfc21.pbi.net ([206.13.28.240]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171uvQ-0004lY-00 for ; Sun, 28 Apr 2002 16:05:36 -0400 Original-Received: from pacbell.net ([64.161.26.69]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GVA0083GNTBDA@mta6.snfc21.pbi.net> for guile-devel@gnu.org; Sun, 28 Apr 2002 13:05:35 -0700 (PDT) Original-To: Bill Gribble X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.18 i686) X-Accept-Language: en 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:548 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:548 Bill Gribble wrote: > > 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. I have a program that defines the procedure ``set-writable'' http://www.gnu.org/manual/autogen-5.3.6/html_chapter/autogen_3.html#SEC62 but I added that procedure only recently. I want to use it if it is available, but skip it if it is not. That way, I do not require that people have an AutoGen version more recent than a year old. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel