Hello Christophe, 2009/1/28 Christophe Grand <christo...@cgrand.net>
> > 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 now make a change in file a/b/c1.clj, how to make clojure > > recompile a.b.c ? > > > > - I think, if I just do (compile 'a.b.c), the compilation will not > > proceed, because file a/b/c.clj "seems" to be in sync (that's > > "a/b/c1.clj that is not in sync). > > > > One solution could be to "touch" file a/b/c.clj before calling > > 'compile on it ? > > > > Are there other (maybe cleaner) solutions ? > > > > 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 anticipation my next question :-) But does it solve the problem I exposed ? Let's rephrase it : to force the recompilation of a lib, is there another way than "touching" the lib's declaring file (so that if I just make changes in a file loaded by the lib's declaring file, I'm sure the lib is really recompiled) ? Thanks in advance, -- Laurent > > > Christophe > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---