Stuart Halloway <stuart.hallo...@gmail.com> writes: > Are there other things like this that cause people to "restart REPL" > unnecessarily? I would like to identify the whole list of such things and > kill them.
Maybe related. Ritz has slime-load-file hooked up to code that tries to remove dead vars from a namespace. i.e. if you remove a var from your source and reload the file, it will notice that the var is no longer there and remove it. It does this by setting a flag in the metadata of every var in the namespace before loading, then loads the file, then examines which vars still have the flag set. This works very well except for defonce'd vars, which are removed by the above logic. One way to solve this would be for defonce, and any other def form with the same semantics, to set a marker keyword, :defonce say, on the metadata of the vars they define. Hugo -- 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