Hello, one possibility:
1:15 user=> (defn func [arg] (println "func: " arg)) #'user/func 1:16 user=> ((ns-resolve *ns* (symbol "func")) "laurent") func: laurent nil 1:17 user=> HTH, -- Laurent 2009/9/14 wireless <wirelessp...@gmail.com> > > (defn func [arg] (println "func: " arg)) > > I'd like to invoke 'func' using the string name of the function, > something like: > ("func" "mytag") > > Obviously, this would be answered with "java.lang.ClassCastException: > java.lang.String cannot be cast to clojure.lang.IFn" > > I need to find a way to convert the string "func" to "IFn" somehow. > ((make-IFn "func") "mytag") > > How is this done? > > Thanks > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---