On Wed, Jan 14, 2009 at 3:07 AM, lpetit <laurent.pe...@gmail.com> wrote: > > Hello, > > Is it possible for my code to "subscribe" to events of type > "namespace change" which would inform of deltas on top level > namespaces : > - added symbol > - removed symbol > - changed root var binding of a symbol > > Indeed, I'm currently implementing a little "namespace browser" View > for clojuredev (eclipse clojure development tool - aka CLJDT), and I'm > concerned with how to efficiently and accurately keep my namespace > browser in sync with the clojure environment it is observing.
This was done already for very similar purpose, by Mike Messinides. It's a bit of a hack, and I imagine the code is a bit out of date now, but I'm sure it can be brought up to snuff: http://clojure.googlegroups.com/web/repl+(2).clj A "clean" solution would be to have watchers on namespace objects, as there are now on agents, refs, etc, but I don't think that's planned. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---