> > (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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to