(require 'ns-a) will 'install' the namespace ns-a in the clojure
environment. If ns-a has other namespaces that it requires ... they will
also be installed for ns-a to be fully functional.
(use 'ns-a) will not only 'install' the namespace ns-a, but also create
mappings for all public vars of nam
Laurent would you mind explaining what is the difference between
require and use? I don't understand the documentation for those
functions.
Thanks a lot
-Patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Cloj
Thank you so much guys- I knew something was wrong... didn't realize
though that I was using the wrong loading command.
-Conrad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, s
Hi,
Instead of "low level" 'load call, you should use either 'require or 'use in
the REPL.
That would allow you to either
(require 'bar) => will not try to get a fresh content of bar from the
filesystem if ns bar already exists
(require 'bar :reload) => will force ns bar to be reloaded from the
f
"load" is a low-level file loading function; it does not reload
dependent namespaces.
Use the higher-level "require" and "use" functions with the :reload-
all option, which will reload dependent namespaces.
-SS
On Aug 23, 2:48 pm, Conrad wrote:
> Hi- I have a bug in my code related most like
Hi- I have a bug in my code related most likely to my misunderstanding
of some arcane corner of Clojure namespaces... can someone tell me
what I'm missing?
First, create the following 2 files:
--- foo.clj ---
(ns foo)
(def x (ref true))
--- end foo.clj ---
--- bar.clj ---
(ns bar
(:use foo)