Subject: Re: checking if symbol is a function.
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1999/10/04
Newsgroups: comp.lang.lisp
Message-ID: <7t9m70$dfli2@fido.engr.sgi.com>
Deepak Goel  <deego@glue.umd.edu> wrote:
+---------------
| So i would try (functionp '*) or (functionp '7) viz. i need (functionp
| arg), but then there is a missing # because (functionp arg) gives nil
| when arg = '*.
+---------------

That's because '* isn't a function -- it's a symbol. If you
try it with an actual function (such as #'*) it works fine:

	> (defvar arg #'*)
	ARG
	> arg 
	#<Function * {1084019}>
	> (functionp arg)
	T
	>


-Rob

-----
Rob Warnock, 8L-846		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		FAX: 650-933-0511
Mountain View, CA  94043	PP-ASEL-IA