Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:.NET 4.0 Clojure 1.4.0 on Windows 7
Description
I start the repl and run my ClojureCLR as follows:
Clojure.Main.exe -i initscript -r
Clojure.Main.exe -i initscript -m foo.core
The file initscript looks like this:
(set! *warn-on-reflection* true)
The value set in the initscript is not carried over to the repl or run session. When I embed the line
(set! *warn-on-reflection* true)
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.