On Thu, Oct 29, 2009 at 1:38 PM, Meikel Brandmeyer <m...@kotka.de> wrote:
>> All good here, but, if I do the eval variation,
>> user=> (eval (list (symbol ".setFileSelectionMode") jfc 1))
>
> Another example which shows that eval is not worth the trouble. It is
> better to use reflection. You cannot embed the JFileChooser as a
> object into the code. You have to construct it in your eval. (eval `
> (let [chooser# (JFileChooser.)] (~(symbol ".setFileSelectionMode")
> chooser# 1) chosser#)).

Thanks for all the people that helped. But I just wonder, why?
I mean, why one cannot embed an object in the eval code?

Tiago

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