summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen C. Gilardi <squeegee@squeegee-mbp.scgilardi.selfip.net>2009-06-30 13:00:04 -0400
committerChouser <chouser@n01se.net>2009-07-09 23:21:37 -0400
commitab7947e68a5b435f243790e197cfdb781d47986f (patch)
tree62171ddf2c21bf5532e41cbfcd172d29d22ca599 /src
parenta1397390d8b3b63f2039359520629d87b152d717 (diff)
Refs #137: make *math-context* settable, with test + tests of with-precision
Signed-off-by: Chouser <chouser@n01se.net>
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/main.clj7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/clj/clojure/main.clj b/src/clj/clojure/main.clj
index 6bd798da..58fa0a3f 100644
--- a/src/clj/clojure/main.clj
+++ b/src/clj/clojure/main.clj
@@ -16,12 +16,13 @@
(defmacro with-bindings
"Executes body in the context of thread-local bindings for several vars
- that often need to be set!: *ns* *warn-on-reflection* *print-meta*
- *print-length* *print-level* *compile-path* *command-line-args* *1
- *2 *3 *e"
+ that often need to be set!: *ns* *warn-on-reflection* *math-context*
+ *print-meta* *print-length* *print-level* *compile-path*
+ *command-line-args* *1 *2 *3 *e"
[& body]
`(binding [*ns* *ns*
*warn-on-reflection* *warn-on-reflection*
+ *math-context* *math-context*
*print-meta* *print-meta*
*print-length* *print-length*
*print-level* *print-level*