On Oct 10, 12:34 pm, Perry <[EMAIL PROTECTED]> wrote:
> Not sure exactly how this is related, but r1058 still gives me the
> following error that popped up after r1057. Compojure defines this
> macro:
>
> (defmacro redef
> "Redefine an existing value, keeping the metadata intact."
> [name value]
> `(let [m# (meta #'~name)
> v# (def ~name ~value)]
> (.setMeta v# (merge m# (meta #'~name)))
> v#))
>
> & when it's read it produces this exception:
>
> java.lang.ClassCastException: clojure.lang.LispReader$Unquote
> cannot be cast to clojure.lang.Symbol
>
> As the messages says, the nut seems to be that the ~name in `(#'~name)
> evaluates to an unquote, instead of a symbol (as it must've before).
>
Should be fixed in rev 1059, although the use of reader syntax in
macro expansions is suspect - it should use (var ~name) instead.
Rich
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---