guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I determine if a function is defined?


From: Rob Browning
Subject: Re: How do I determine if a function is defined?
Date: Sun, 28 Apr 2002 20:28:55 -0500
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-debian-linux-gnu)

Bruce Korb <address@hidden> writes:

> 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.

Try

  (if (defined? 'set-writable)
   ...)

Though you could also handle this during the make process via .in
files if you didn't want to have to run all the conditionals on every
load.

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]