Re: binding at the REPL

2009-06-16 Thread Rich Hickey
On Jun 16, 5:34 pm, Frantisek Sodomka wrote: > There was regression in Clojure SVN r1370. Test for 'binding' is > in:http://code.google.com/p/clojure-contrib/source/browse/trunk/src/cloj... > > I can reproduce it with r1370. > That was fixed in r1373 Rich --~--~-~--~~

Re: binding at the REPL

2009-06-16 Thread Frantisek Sodomka
There was regression in Clojure SVN r1370. Test for 'binding' is in: http://code.google.com/p/clojure-contrib/source/browse/trunk/src/clojure/contrib/test_clojure/vars.clj I can reproduce it with r1370. Frantisek On Jun 16, 8:08 pm, Stuart Halloway wrote: > This surprised me. What part of my m

Re: binding at the REPL

2009-06-16 Thread Rich Hickey
On Tue, Jun 16, 2009 at 2:27 PM, Stuart Halloway wrote: > > OK, just updated the repos. and this isn't happening anymore. Kind of > a strange bug though. Rich, do you know why this happened (and did you > explicitly fix it at some point?) > >> Strange, I get the expected result, Clojure SVN revisi

Re: binding at the REPL

2009-06-16 Thread Stuart Sierra
Strange, I get the expected result, Clojure SVN revision 1382: user> (def dozen 12) #'user/dozen user> (binding [dozen 13] dozen) 13 user> (#(binding [dozen 13] dozen)) 13 user> -the other Stuart On Jun 16, 2:08 pm, Stuart Halloway wrote: > This surprised me. What part of my mental model need

Re: binding at the REPL

2009-06-16 Thread Stuart Halloway
OK, just updated the repos. and this isn't happening anymore. Kind of a strange bug though. Rich, do you know why this happened (and did you explicitly fix it at some point?) > Strange, I get the expected result, Clojure SVN revision 1382: > > user> (def dozen 12) > #'user/dozen > user> (bind

Re: binding at the REPL

2009-06-16 Thread Sean Devlin
I use 1.0, btw. Tested both on OSX and Windows. On Jun 16, 2:19 pm, Mark Volkmann wrote: > On Tue, Jun 16, 2009 at 1:08 PM, Stuart > > Halloway wrote: > > > This surprised me. What part of my mental model needs to be > > adjusted? :-) > > > user=> (def dozen 12) > > #'user/dozen > > > user=> (b

Re: binding at the REPL

2009-06-16 Thread Mark Volkmann
On Tue, Jun 16, 2009 at 1:08 PM, Stuart Halloway wrote: > > This surprised me. What part of my mental model needs to be > adjusted? :-) > > user=> (def dozen 12) > #'user/dozen > > user=> (binding [dozen 13] dozen) > 12 ; hunh? This outputs 13 for me with the latest version of Clojure from this m

Re: binding at the REPL

2009-06-16 Thread Sean Devlin
Did you try this from a fresh REPL? Maybe you made a typo somewhere? I can't reproduce it. user=> (def dozen 12) #'user/dozen user=> (binding [dozen 13] dozen) 13 On Jun 16, 2:08 pm, Stuart Halloway wrote: > This surprised me. What part of my mental model needs to be   > adjusted? :-) > > user

binding at the REPL

2009-06-16 Thread Stuart Halloway
This surprised me. What part of my mental model needs to be adjusted? :-) user=> (def dozen 12) #'user/dozen user=> (binding [dozen 13] dozen) 12 ; hunh? user=> (#(binding [dozen 13] dozen)) 13 --~--~-~--~~~---~--~~ You received this message because you are s