Re: Bug: ClassNotFoundException with macro using private helper function.

2009-06-27 Thread Four of Seventeen
On Jun 27, 5:53 am, Meikel Brandmeyer wrote: > Hi, > > Am 26.06.2009 um 20:41 schrieb Four of Seventeen: > > > (defn- foo [args] body) > > > (defmacro bar [args] body) > >  `(foo ~some-args (fn [~more-args] ~...@body))) > > > and it complained that foo was not public when I invoked bar from > > o

Re: Bug: ClassNotFoundException with macro using private helper function.

2009-06-27 Thread Meikel Brandmeyer
Hi, Am 26.06.2009 um 20:41 schrieb Four of Seventeen: (defn- foo [args] body) (defmacro bar [args] body) `(foo ~some-args (fn [~more-args] ~...@body))) and it complained that foo was not public when I invoked bar from outside its home namespace. Yes. foo must be public in macros used by ot

Re: Bug: ClassNotFoundException with macro using private helper function.

2009-06-26 Thread Four of Seventeen
This is odd. Doing a clean & build made this go away. After I did that, load-file also worked, and using the first workaround (let [x foo]) at that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Bug: ClassNotFoundException with macro using private helper function.

2009-06-26 Thread Four of Seventeen
I had code something like this: (defn- foo [args] body) (defmacro bar [args] body) `(foo ~some-args (fn [~more-args] ~...@body))) and it complained that foo was not public when I invoked bar from outside its home namespace. OK, easy workaround, I thought: (defmacro bar [args] body) (let [