Re: gen-class and namespace

2008-10-08 Thread mb
Hi, >> gen-class loads eg. foo/bar/Baz.clj for class foo.bar.Baz. However, >> maybe one also has support functions in the foo.bar namespace. Hence >> one needs also foo/bar/bar.clj. > > I seem to be able to solve the problem by putting this at the top of > Baz.clj: > > (ns foo.bar (:use foo.bar))

Re: gen-class and namespace

2008-10-08 Thread Chouser
On Wed, Oct 8, 2008 at 5:32 PM, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > > gen-class loads eg. foo/bar/Baz.clj for class foo.bar.Baz. However, > maybe one also has support functions in the foo.bar namespace. Hence one > needs also foo/bar/bar.clj. I seem to be able to solve the problem by p

gen-class and namespace

2008-10-08 Thread Meikel Brandmeyer
Dear Clojurians, gen-class loads eg. foo/bar/Baz.clj for class foo.bar.Baz. However, maybe one also has support functions in the foo.bar namespace. Hence one needs also foo/bar/bar.clj. But now we are in trouble, since we have to duplicate any shared initialisation between bar.clj and Baz.clj. We