Skip to content

Commit

Permalink
Fix multiple evaluation of object' form in with-described-object'
Browse files Browse the repository at this point in the history
  • Loading branch information
Clinton Ebadi committed Dec 24, 2010
1 parent b5cc8f3 commit 8f1d4c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mao/description.lisp
Expand Up @@ -106,9 +106,11 @@
(without-special-symbol-access
(funcall function))))))))))))

(defmacro with-described-object ((object &optional (description `(description-of ,object)))
(defmacro with-described-object ((object &optional description)
&body body)
`(funcall-with-described-object (lambda (),@body) ,object ,description))
(once-only (object)
`(funcall-with-described-object (lambda (),@body) ,object ,(or description
`(description-of ,object)))))



Expand Down

0 comments on commit 8f1d4c1

Please sign in to comment.