I think the compiler defaults to the "user" namespace. -SS
On Jul 28, 11:09 am, Jeff Brown <[email protected]> wrote: > If I have a clojure script that looks like this... > (ns foo) > (defn myfunc [n] > ...) > > I can call that function from Groovy using something like this... > > Compile.load <reader on the file> > > def var = RT.var('foo', 'myfunc') > var.invoke(9) > > I think that is working fine. > > I cannot figure out how to do this if the clojure > script does not define a namespace. > > How would I manage that? > > Thanks. > > jb > -- > Jeff Brown > SpringSourcehttp://www.springsource.com/ > > Autism Strikes 1 in 166 > Find The Cause ~ Find The Curehttp://www.autismspeaks.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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 -~----------~----~----~----~------~----~------~--~---
