[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
side-effecting functions ...
- To: common-lisp@sail.stanford.edu@RUTGERS.EDU
- Subject: side-effecting functions ...
- From: David Bein <pyrnj!pyramid!bein@RUTGERS.EDU>
- Date: Wed, 06 Jan 1988 20:12:00 -0000
[ I know this has been discussed sometime in the past, so please excuse
its new presence. ]
Suppose we are going to compile the following forms:
(1) (FUNCALL 'FOO (SETF (SYMBOL-FUNCTION 'FOO) #'NEW-FOO))
(2) (FUNCALL #'FOO (SETF (SYMBOL-FUNCTION 'FOO) #'NEW-FOO))
(3) (FOO (SETF (SYMBOL-FUNCTION 'FOO) #'NEW-FOO))
(Assume FOO is not an FLET/LABELS function..)
I am assuming that #1 uses the function definition for NEW-FOO and
that #2 uses the current definition for FOO. Should #3 behave as
#1 or #2 or is this purposefully left undefined to discourage
coding practices like this?
--David