The following generates an NPE during compilation:
(deftype Small [])
(defn wrap []
(reify Small))
Obviously, my real use has more interfaces I implement, but this shows
the problem.
My problem is that I need to override 'print-method', which is using
defmulti off of 'type' of it's argument. I guess I could also
implement IMeta and provide a tag as well. But, the workaround I've
been using is to create an empty interface in Java, which reify is
happy to implement.
David
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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