[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: Testing forthe existence of a function
From: |
Giles Chamberlin |
Subject: |
Re: Q: Testing forthe existence of a function |
Date: |
Tue, 27 Oct 2009 17:06:15 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
"Drew Adams" <drew.adams@oracle.com> writes:
> Usually, it is better to test whether the function or variable that
> you will use is defined. That provides finer granularity.
Interesting. I was thinking of my usual use case where I may or may not
have a particular library loaded, which admittedly was not the wording
of the original question.
> In sum, it helps to know a bit about the function and library in question, and
> even whether other libraries are common that might define a function with the
> same name.
Now that I can't argue with!
--
Giles