From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: How do I determine if a function is defined? Date: Sun, 28 Apr 2002 15:15:59 -0400 Sender: guile-devel-admin@gnu.org Message-ID: References: <3CCC39FF.C948A66E@pacbell.net> 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 1020021513 32053 127.0.0.1 (28 Apr 2002 19:18:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Apr 2002 19:18:33 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 171uBs-0008Ks-00 for ; Sun, 28 Apr 2002 21:18:33 +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 171uBV-0000b6-00; Sun, 28 Apr 2002 15:18:09 -0400 Original-Received: from whale.vosn.net ([209.151.66.88] helo=whale.nocdns.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 171u97-0000Uc-00 for ; Sun, 28 Apr 2002 15:15:42 -0400 Original-Received: from pool-151-196-172-228.balt.east.verizon.net ([151.196.172.228] helo=vsynth) by whale.nocdns.com with asmtp (Exim 3.35 #1) id 171u8y-00015p-00; Sun, 28 Apr 2002 15:15:38 -0400 Original-Received: from clinton by vsynth with local (Exim 3.35 #1 (Debian)) id 171u9a-00048w-00; Sun, 28 Apr 2002 15:16:10 -0400 Original-To: Bruce Korb , guile-devel@gnu.org X-Mailer: KMail [version 1.3.2] In-Reply-To: <3CCC39FF.C948A66E@pacbell.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - whale.nocdns.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - vsynth.aletia.com 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:546 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:546 On Sunday 28 April 2002 14:05, Bruce Korb wrote: > Hi, > > I keep trying obvious things, like: > > (if (function? mumble) (mumble)) > > and get: > > ERROR: Unbound variable: mumble > > and then it dies. I just want to do one thing if it is > a function and another if it is either undefined or even > anything else. How to do that seems completely non-obvious. > Thank you. Try (if (procedure? 'mumble) (mumble)). Remember to quote the variable you want to test! _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel