On Friday, September 9, 2011 10:59:39 AM UTC-4, Chouser wrote:
>
> > user> (.newInstance java.util.Date)
> > #<Date Fri Sep 09 13:25:09 CEST 2011>
> > user> #=(.newInstance java.util.Date)
> > ; Evaluation aborted.
> > Can't resolve .newInstance
>
> This is an instance method call.  As I said above, I don't know if
> this can be made to work at all in #=()
>
#=() supports eval, so technically anything can be made to work, no?

user=> (read-string "#=(eval (.newInstance java.util.Date))")
#<Date Fri Sep 09 11:49:26 EDT 2011> 

Not that doing this is a good idea...

Justin

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