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