diff options
author | Rich Hickey <richhickey@gmail.com> | 2009-04-12 13:50:39 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2009-04-12 13:50:39 +0000 |
commit | ac2374f91a047f119127163a96158d2eb9a204b7 (patch) | |
tree | 56ebdbd650725a750e3339ce052f13f73541d5d8 /src/clj | |
parent | 0a8ac6b185348290c5af15c4bfdeda84a5a98592 (diff) |
flag to control eval reader (*read-eval*) [issue 34], patch from jhawk28
Diffstat (limited to 'src/clj')
-rw-r--r-- | src/clj/clojure/core.clj | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj index fceded48..20c73c99 100644 --- a/src/clj/clojure/core.clj +++ b/src/clj/clojure/core.clj @@ -4019,6 +4019,13 @@ Defaults to true") +(add-doc *read-eval* + "When set to logical false, the EvalReader (#=(...)) is disabled in the + read/load in the thread-local binding. + Example: (binding [*read-eval* false] (read-string \"#=(eval (def x 3))\")) + + Defaults to true") + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; helper files ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (alter-meta! (find-ns 'clojure.core) assoc :doc "Fundamental library of the Clojure language") (load "core_proxy") |