I've run into some similar problems, but what I did was to just create
a third namespace that contained the common core functionality. Could
you, or have you tried something like that?

Aside from that you could maybe try to do something in the body of
your file (instead of the ns form) to deal with the dependencies. It's
not as kosher to invoke 'use, 'require and 'refer outside of the 'ns
macro, but it may work. Can you provide a more specific example?


Paul

On Jan 28, 5:08 pm, CuppoJava <[email protected]> wrote:
> Hi,
> I'm unused to managing file dependencies myself, and I'm lost as to
> how to load two namespaces that reference each other.
>
> I'm treating the (use) command as analagous to java's import command.
> But I've run into problems trying to load this namespace:
>
> Do I have to resort to manually separating the dependencies? And if
> so, how would I go about doing that?
>
> Thanks for your help
>   -Patrick
>
> ------a.clj-------
> (ns a
>   (:use b))
>
> (defn afunc []
>   (bfunc))
>
> ------b.clj------
> (ns b
>   (:use a))
>
> (defn bfunc []
>   (afunc))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to