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).

Best,
Perry


On Oct 10, 9:50 am, Rich Hickey <[EMAIL PROTECTED]> wrote:
> On Oct 10, 6:03 am, Achim Passen <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi!
>
> > There seems to be a problem with the new LispReader$VarReader:
>
> > ; r1057
> > user=> `#'clojure/doc
> > java.lang.UnsupportedOperationException: Vars are not values
> > (NO_SOURCE_FILE:0)
>
> > ; r1056
> > user=> `#'clojure/doc
> > (var clojure/doc)
>
> > This only happens for bound Vars, which are no longer wrapped when
> > read.
>
> Fixed - thanks for the report,
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to