On Tue, Dec 16, 2008 at 6:21 PM, Randall R Schulz wrote:
>
> On Tuesday 16 December 2008 15:05, Allen Rohner wrote:
>> > On Dec 16, 4:32 pm, Stuart Halloway wrote:
>> > > Hi all,
>> > >
>> > > I sometimes need to (re)load a library, removing public symbols
>> > > from previously loaded version of
On Tuesday 16 December 2008 15:05, Allen Rohner wrote:
> > On Dec 16, 4:32 pm, Stuart Halloway wrote:
> > > Hi all,
> > >
> > > I sometimes need to (re)load a library, removing public symbols
> > > from previously loaded version of the same lib:
> > >
> > > (defmacro ns-reload
> > > `(do
> > >
On Dec 16, 4:55 pm, Stuart Sierra wrote:
> I would find this useful; I've even tried writing it in the past.
> Perhaps it could go in clojure.contrib.ns-utils.
>
> A thought -- would it be more thorough to use "remove-ns"?
>
> -the other Stuart (Sierra)
>
> On Dec 16, 4:32 pm, Stuart Halloway wr
I would find this useful; I've even tried writing it in the past.
Perhaps it could go in clojure.contrib.ns-utils.
A thought -- would it be more thorough to use "remove-ns"?
-the other Stuart (Sierra)
On Dec 16, 4:32 pm, Stuart Halloway wrote:
> Hi all,
>
> I sometimes need to (re)load a libr
Hi all,
I sometimes need to (re)load a library, removing public symbols from
previously loaded version of the same lib:
(defmacro ns-reload! [ns]
`(do
(if (find-ns '~ns)
(doseq [s# (keys (ns-publics '~ns))] (ns-unmap '~ns s#)))
(require :reload-all '~ns)))
Use case: Wri