Subject: Re: A function
From: rpw3@rpw3.org (Rob Warnock)
Date: Sun, 02 Dec 2007 03:43:59 -0600
Newsgroups: comp.lang.lisp
Message-ID: <y7ydnfS7I-DC48_anZ2dnUVZ_jWdnZ2d@speakeasy.net>
In article <pan.2007.12.01.20.35.18.503557@gmail.com>,
+---------------
| D Herring wrote:
| > Try using lispdoc.com to find the HyperSpec (and other) documentation 
| > on FUNCALL, FUNCTION, SYMBOL-FUNCTION, and #'.
| 
| I know the specification details (mostly).  What I'm interested in is the
| history.  It seems an arbitrary convenience, and, as you noted, in
| Common Lisp a symbol-function form could be used in its place.  
+---------------

As noted by someone previously, SYMBOL-FUNCTION
can't be used for a lexical function:

    > (defun foo () 'global)

    FOO
    > (flet ((foo () 'local))
	(list (foo)
	      (funcall (function foo))
	      (funcall 'foo)
	      (funcall (symbol-function 'foo))))

    (LOCAL LOCAL GLOBAL GLOBAL)
    > 


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607