On 16.01.2010, at 15:22, Rich Hickey wrote:
Since Clojure already does this, you can borrow its implementation,
found in clojure.lang.Reflector. In this case, see invokeConstructor.
(clojure.lang.Reflector/invokeConstructor (class (ref "foo")) (to-
array [42]))
Great, thanks, this simplifies my code quite a bit!
Konrad.
--
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
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en