[CLJCLR-5] Global vars set! by the init script is reset to original state by Clojure.Main.exe Created: 16/Dec/12 Updated: 12/Mar/13 Resolved: 12/Mar/13
|Reporter:||Shantanu Kumar||Assignee:||David Miller|
.NET 4.0 Clojure 1.4.0 on Windows 7
I start the repl and run my ClojureCLR as follows:
The file initscript looks like this:
The value set in the initscript is not carried over to the repl or run session. When I embed the lineinto the target Clojure file, the newly set value is recognized.
|Comment by David Miller [ 12/Mar/13 8:36 AM ]|
This behavior comes from the JVM version of Clojure. Request for change should happen there.
This happens because the initialization is done by a call to Compiler.loadFile, which calls Compiler.load which establishes its own binding for warn-on-reflection, that binding disappearing when the initialization is complete.