OK, so it seems that currently, the only "reliable" way for me is to "touch"
the ns defining file.
Do you agree with that conclusion ?
2009/1/29 Christophe Grand
>
> Laurent PETIT a écrit :
> > I tried this, but it didn't seem to work :
> > ; a/b/c.clj
> > (ns a.b.c)
> > (defn f [] :f)
> > (lo
Laurent PETIT a écrit :
> I tried this, but it didn't seem to work :
> ; a/b/c.clj
> (ns a.b.c)
> (defn f [] :f)
> (load "c1")
>
> ;a/b/c1.clj
> (in-ns 'a.b.c)
> (defn g [] :g)
>
> ;in REPL
> user=>(let [real-load clojure.core/load]
> (binding [clojure.core/load (fn [f] (println "file loaded: "
I tried this, but it didn't seem to work :
; a/b/c.clj
(ns a.b.c)
(defn f [] :f)
(load "c1")
;a/b/c1.clj
(in-ns 'a.b.c)
(defn g [] :g)
;in REPL
user=>(let [real-load clojure.core/load]
(binding [clojure.core/load (fn [f] (println "file loaded: " f) (real-load
f))] (compile 'a.b.c)))
file loaded
Laurent PETIT a écrit :
>
> Hi Laurent,
>
> Can't you rebind clojure.core/load to record all resources laoded
> during
> a namespace compilation?
>
>
> Well yes, that seems indeed a good solution to another problem I'll
> have to solve (dependency graph of files) -> thanks for ant
Hello Christophe,
2009/1/28 Christophe Grand
>
> Laurent PETIT a écrit :
> > Hello,
> >
> > Say I have namespace a.b.c that is defined in file a/b/c.clj, but
> > which also has some part in file a/b/c1.clj. And that a/b/c.clj loads
> > a/b/c1.clj somewhere in the code.
> >
> >
> > If I a.b.c via
Laurent PETIT a écrit :
> Hello,
>
> Say I have namespace a.b.c that is defined in file a/b/c.clj, but
> which also has some part in file a/b/c1.clj. And that a/b/c.clj loads
> a/b/c1.clj somewhere in the code.
>
>
> If I a.b.c via (compile 'a.b.c), the classes and files are in sync.
>
> If I no
Hello,
Say I have namespace a.b.c that is defined in file a/b/c.clj, but which also
has some part in file a/b/c1.clj. And that a/b/c.clj loads a/b/c1.clj
somewhere in the code.
If I a.b.c via (compile 'a.b.c), the classes and files are in sync.
If I now make a change in file a/b/c1.clj, how to