Hi,

Am 19.07.2010 um 22:20 schrieb Peter Schuller:

>> I haven't tested what happens to the deftest stuff, but the „moving 
>> function“ could be addressed.
> 
> Cool. I had not yet run into the moving function case with clojure (I
> did several times with Common Lisp), so that might be a non-issue. I
> was just presuming that no magic was going on.

It turns out you shouldn't also listen to me. I think I will stop writing 
emails for today. I got caught by the last-var-wins feature.

Clojure 1.2.0-master-SNAPSHOT
user=> (require 'foo.bar)
nil
user=> (foo.bar/baz)
5
; Remove function baz here from file
user=> (require :reload 'foo.bar)
nil
user=> (foo.bar/baz)
5

In my stupidity I chose prn as function name, which removed from the namespace 
on reload, because clojure.core/prn „overwrites“ the Var again. Maybe such a 
functionality could be also implemented for normal reload? But then what 
happens to other namespaces which refer to this Var? I admit, this is not a 
trivial question.

Sincerely
Meikel

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

Reply via email to