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 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

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 you so you can correct it and
explicitly identify them as dynamic if you need them to be.

-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 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


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 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

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 mcneil.da...@gmail.com wrote:
  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 you so you can correct it and
 explicitly identify them as dynamic if you need them to be.

 -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 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