On Wednesday, March 13, 2013 9:35:42 PM UTC+1, puzzler wrote: > OK, thanks. The apparent "globalness" is not the piece I want to > imitate. I want to make a var available for users to set!, where the var > controls overall behavior of how the library operates. > > I understand that I can just declare the var dynamic, and then they can > control it with the binding construct, but I want users to be able to set! > it once and forget about it. >
As far as I understand it, *set!* modifies the *thread-local* binding, just like the *binding* macro, but doesn't delimit a definite scope of validity for the binding. You can *set!* any dynamic var with the same semantics. -Marko -- -- 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 --- 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.