Re: Trick to getting bindings in a repl

2011-01-05 Thread Chas Emerick
Clojure's vars maintain bindings in ThreadLocals[1]. I'm pretty sure accessing ThreadLocals of other threads can't be done. Looking at ThreadLocal and Thread sources, you might be able to dig around private and package-private fields to get at them. Generally a bad idea. FWIW, the Enclojure

Trick to getting bindings in a repl

2010-12-30 Thread Mike
I'm doing something kind of tricky...I'm running a REPL in my Java Swing application. I do something like: public class MyConsoleClass extends OurEmbeddedInterpreterClass { // ... // inner class private class ReplRunner extends Thread { public void run() { Namespace MYNS =