Re: Observing namespace changes

2013-04-30 Thread Dave Sann
Out of interest, did any library come out of this? On Thursday, 15 January 2009 06:46:52 UTC+11, Laurent PETIT wrote: > > OK thank you both Chris & Mike for your answer. > > What I've done for the moment is similar to what Mike did: at any > place where there is a chance for something to change

Re: Observing namespace changes

2009-01-14 Thread lpetit
OK thank you both Chris & Mike for your answer. What I've done for the moment is similar to what Mike did: at any place where there is a chance for something to change namespaces, I reload a new snapshot (and I throw the old). Registering watchers for Vars seems very interesting, I'll investigat

Re: Observing namespace changes

2009-01-14 Thread MikeM
There's no event mechanism to monitor namespace changes. I accomplish this by taking a snapshot before and after any possible namespace- changing execution, using ns-map. Not as efficient as an event callback, but I haven't had any performance issues (map lookups are plenty fast for me). You can

Re: Observing namespace changes

2009-01-14 Thread Chouser
On Wed, Jan 14, 2009 at 3:07 AM, lpetit 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 cur

Observing namespace changes

2009-01-14 Thread lpetit
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