Hi,

On 19 Aug., 13:05, timc <timgcl...@gmail.com> wrote:

> com/minibar/PmsSimulator.clj -- containing these lines:
>
> (ns com.minibar.PmsSimulator
>   (:require  [com.minibar :as mb] ...etc)
>   (:load  "pmssim/util"  ...etc)
>   (:gen-class))
> ...etc
>
> where the file com/minibar/pmssim/util.clj contains these lines:
>
> (ns com.minibar.PmsSimulator
>   (:require  [com.minibar :as mb]))
> ...
>   (mb/getProgArg ":foobar")
> ...etc

This should just be (in-ns 'com.minibar.PmsSimulator). Any require or
use should be moved to the "master" ns in com/minibar/
PmsSimulator.clj. ns and in-ns are not equivalent. There should be
just one ns. Use in-ns to switch namespaces (eg. at the top of
a :load'ed file).

I can't say for sure that this is the root cause, but compiling a
namespace which redefines itself when loading somehow asks for
trouble.

Sincerely
Meikel

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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