[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: with-slots macroexpansion bug



> theres a nasty bug in with-slots such that a slot named "function"  
> gets expanded to a function object!
> 	 #'(SLOT-VALUE #:G969 'FUNCTION) 
> instead of something like:
> 	(function (slot-value #G969 'function))

This is not a bug. You have been fooled by the fact that CLISP's printer
prints lists of the form  (FUNCTION xxx)  as  #'xxx  -
regardless whether the symbol FUNCTION is meant as a special form as a
variable name.


                    Bruno Haible
                    haible@ma2s2.mathematik.uni-karlsruhe.de