On Aug 23, 3:39 pm, Craig Andera <cand...@wangdera.com> wrote:
> > (Class/forName "java.lang.String")
>
> Oh, does that work in 1.3? Because (new (Class/forName "user.Foo"))
> was the first thing I tried (under 1.2) and it doesn't work. Perhaps
> unsurprisingly given that new is a special form.

No. But you can use reflection to futz around with the class object,
find its constructor, and then invoke that.

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

Reply via email to