in-ns and load are what you are looking for: ;; foo.clj (ns my.foo ... ... (load "foo_a")
;; foo_a.clj (in-ns 'my.foo) ... On Mon, Dec 19, 2011 at 11:37 AM, FD <du...@hotmail.com> wrote: > Hello, > > In lisp, one can define functions within a package in multiple file. > Files have just to start with (in-package ...). > Is it possible to do it in clojure? > I made several attempts with > - load-file but I can't use a (declare xxx ...) in one file and (defn > xxx ...) in an other file > - a 'cascade' of namespaces > Ex: File1 (ns one > (:use used-ns)) > > > -- > 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 > Note that posts from new members are moderated - please be patient with your > first post. > 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 -- 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 Note that posts from new members are moderated - please be patient with your first post. 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