FWIW, there's also a hack without java calls, which Chouser referred to: (binding [*ns* (find-ns 'foo)] (eval '(def bar 3)))
although you have to create the namespace yourself if it doesn't exist. On Nov 11, 3:39 pm, MikeM <[EMAIL PROTECTED]> wrote: > This may be a horrible hack, but you can do something like this in > your macro: > > (clojure.lang.RT/var "my-namespace" "hack-fn" (fn[x] (+ 1 x)) > > This defines a var (creates the namespace if it doesn't exist) and > sets its value to a function, and then you can > > (in-ns 'my-namespace) > (hack-fn 1) > > etc. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---