(defmacro foo (x)
`(defun ,xt ()
(format t "hullo")))
(foo bar)
will not define a function bart
, since ,xt
is read as the variable xt
rather than the variable x
plus a t
. But is there a way to get a function bart
by supplying the argument bar
?