"Jim - FooBar();" <[email protected]> writes:
>>> (set!*my-test* true)
>>
>> (alter-var-root #'*my-test* (constantly true))
>
> here explains what you're asking:
> http://clojure.org/Vars
>
> scroll down to until you see
No, this only explains why
(def ^{:dynamic true} *my-test* false)
(set! *my-test* true)
causes an error. What it doesn't explain is why
(set! *warn-on-reflection* true)
works just fine. Is the REPL running inside a binding? Is it possible to
add other forms of this binding? Or not? And if it is okay to use set!
on *warn-on-reflection*, why is it not okay to allow me, as the library
developer, to define similar properties for my library which work in a
similar way.
Phil
--
--
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
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.