Re: def and ;dynamic

2011-04-17 Thread Stuart Sierra
1.3 is not even beta yet, so still a long way from "final." In the latest snapshots, :dynamic is no longer added automatically, but it still prints a warning. -S -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: def and ;dynamic

2011-04-15 Thread Alan
I heard that this idea of automatically marking *foo* as dynamic had been dropped for the final 1.3 build. Did I misunderstand? Also, if Jules really liked those * characters in names, would it be an option to explicitly declare them ^{:dynamic false}? On Apr 15, 6:01 am, David McNeil wrote: > >

Re: def and ;dynamic

2011-04-15 Thread Jules
Aha ! Thanks, David. Now I can sort all those annoying warnings :-) Jules -- 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 patien

Re: def and ;dynamic

2011-04-15 Thread David McNeil
> Thank you for your solution, but can you explain why it works ? As best I recall... in Clojure 1.3 vars are no longer dynamic by default. In the short-term, to ease the pain of this change, Clojure 1.3 will automatically make vars with earmuffs (e.g. *foo*) into dynamic variables. But it warns y

Re: def and ;dynamic

2011-04-15 Thread Jules
It worked !!! I thought that *xxx* was just a _convention_ to mark a variable as global, not a syntax to mark a global as mutable... ? Thank you for your solution, but can you explain why it works ? Jules -- You received this message because you are subscribed to the Google Groups "Clojure" g

Re: def and ;dynamic

2011-04-15 Thread David McNeil
Try removing the "*" characters from the names. E.g change *session- manager-name* to session-manager. -David -- 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 membe

def and ;dynamic

2011-04-15 Thread Jules
since moving up to 1.3.0alphaxx I've seen lots of compile time warnings telling me, as I understand it, that I am dynamically resetting the root binding of a var ? e.g. Var *session-manager-name* not marked :dynamic true, setting to :dynamic. You should fix this before next release! I've let