there are a number of vars that are bound in clojure.main's repl, *assert* is one of them. So in the repl you can use set!.
On Thu, Mar 11, 2010 at 3:25 PM, Benjamin Teuber <[email protected]> wrote: >> > (def *assert* false) >> >> You cannot use def to change the value of a var in another namespace. >> This is nothing specific to *assert* or to clojure.core. > >> Here is what you can do instead: >> >> (alter-var-root (var *assert*) (fn [_] false)) > > I actually tried from inside clojure.core, and actually alter-var-root > doesn't do the job either - maybe because there's already a thread- > local binding there which shadows the root? > >> However, what you probably want is >> >> (set! *assert* false) > > Great, indeed :) > > And thanks for your warning about macroexpand-all. > > Benjamin > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
