On Jan 16, 2009, at 5:01 PM, Kevin Albrecht wrote:

In ~/src/foo/bar/alpha.clj :

(ns foo.bar.alpha
 (:require (foo.bar beta)))
(println (get-stuff))

The :require clause succeeded in loading foo.bar.beta, but :require does not bring get-stuff into namespace foo.bar.alpha.

You can solve this by qualifying get-stuff's namespace when you call it:

 (println (foo.bar.beta/get-stuff))

or by using the :as option in :require to give foo.bar.beta a shorter alias and qualifying with that in the call:

 (:require (foo.bar [beta :as beta])))
 (println (beta/get-stuff))

or by using :use instead of :require:

 (:use (foo.bar [beta :only (get-stuff)])))

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to