A simpler example is the pretty printer in clojure contrib. This has
three component files that make up the common namespace and they are
just loaded in:

(ns clojure.contrib.pprint
  (:use clojure.contrib.pprint.utilities)
  (:import [clojure.contrib.pprint PrettyWriter]))

(load "pprint/pprint_base")
(load "pprint/cl-format")
(load "pprint/dispatch")

nil


Then, in each module, we declare ourselves to be in the pprint
namespace with in-ns:

(in-ns 'clojure.contrib.pprint)

And we're done.

I didn't know about the :load syntax with the ns macro that Laurent
mentions above. That would be a more "approved" way to do this, i
think.

Tom



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to