Hi,

Is it possible to set *warn-on-reflection* such that it can be seen by
multiple threads? I can't use def to define *warn-on-reflection* because it
is defined in another namespace. I can use set! to change the value of the
binding for one thread but this is not seen by other threads:

(set! *warn-on-reflection* true)
(.start (Thread. #(println *warn-on-reflection*)))

...prints false

The reason that I would like to do this is that I'm writing a program that
uses Swing and I'd like to see if reflection is used on callbacks that
execute on the AWT event thread... ideally without having to figure out how
to make Swing call my function that sets *warn-on-reflection* before it does
anything else.

Cheers,

Chris

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