[cl-who-devel] Newbie confusion

Vamsee Kanakala vamlists at gmail.com
Fri Nov 17 17:54:45 UTC 2006


Hi,


I suspect this has got to do with not properly understanding what gensym
does, but I think this should work, but I'm only getting empty <li>
elements from the list-items function. Where am I going wrong?

(defun list-items ()
  (let ((=value= (gensym)))
    (loop for =value= to 15 collecting
	 `((:li (write-to-string ,=value=))))))

(defmacro show-errors ()
  `(with-html-output (*standard-output*)
     (:div :id "errorExplanation"
	   (:ul ,@(list-items)))))


Thanks,
Vamsee.



More information about the Cl-who-devel mailing list