unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
Cc: Bill Gribble <grib@linuxdevel.com>,
	Clinton Ebadi <unknown_lamer@unknownlamer.org>,
	guile-devel@gnu.org
Subject: Re: How do I determine if a function is defined?
Date: Sun, 28 Apr 2002 20:28:55 -0500	[thread overview]
Message-ID: <87sn5fl2co.fsf@raven.i.defaultvalue.org> (raw)
In-Reply-To: <3CCC4907.BE9DDCFB@pacbell.net> (Bruce Korb's message of "Sun, 28 Apr 2002 12:09:59 -0700")

Bruce Korb <bkorb@pacbell.net> 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

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


  reply	other threads:[~2002-04-29  1:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-28 18:05 How do I determine if a function is defined? Bruce Korb
2002-04-28 19:15 ` Clinton Ebadi
2002-04-28 19:58   ` Bill Gribble
2002-04-28 19:09     ` Bruce Korb
2002-04-29  1:28       ` Rob Browning [this message]
2002-04-29  1:34         ` Bruce Korb

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=87sn5fl2co.fsf@raven.i.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=grib@linuxdevel.com \
    --cc=guile-devel@gnu.org \
    --cc=unknown_lamer@unknownlamer.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).