Discussion:
Newbie confusion
Vamsee Kanakala
2006-11-17 17:54:45 UTC
Permalink
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.
Vamsee Kanakala
2006-11-18 04:51:49 UTC
Permalink
Sorry, don't bother - I didn't realize that I have to use esc for
displaying strings - been jumping through all kinds of hoops to find out
why the text wasn't showing up :)
Post by Vamsee Kanakala
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"
Thanks,
Vamsee.
Loading...