You can see a concrete example of Meikel's answer right there in the
Clojure sources: files core.clj, core_deftype.clj, core_print.clj, and
core_proxy.clj define the clojure.core namespace.
On Aug 5, 4:57 am, octopusgrabbus wrote:
> Sure. module = .clj file
>
> On Aug 5, 2:35 am, Laurent PETIT w
Sure. module = .clj file
On Aug 5, 2:35 am, Laurent PETIT wrote:
> 2011/8/4 octopusgrabbus
>
> > Can more than one module implement the same name space? In other
> > words, can the functions that comprise a name space be spread out in
> > multiple modules?
>
> To help answer the right question,
2011/8/4 octopusgrabbus
> Can more than one module implement the same name space? In other
> words, can the functions that comprise a name space be spread out in
> multiple modules?
>
To help answer the right question, maybe you could explain what is your
definition of "module" (there's current
Hi,
you can also spread one namespace across multiple files.
In foo/bar.clj:
(ns foo.bar)
(def x :baz)
(more code goes here)
(load "frob")
In foo/frob.clj:
(in-ns 'foo.bar)
(use eg, x here)
And so on.
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
There are no modules in clojure, but just namespaces. But you can nest
namespaces, so you can spread out the functions in namespaces.
On Aug 4, 2:32 pm, octopusgrabbus wrote:
> Can more than one module implement the same name space? In other
> words, can the functions that comprise a name space b
Can more than one module implement the same name space? In other
words, can the functions that comprise a name space be spread out in
multiple modules?
Thanks.
cmn
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to c