how to invoke a function using the function name string?

2009-09-14 Thread wireless
(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 t

Re: how to invoke a function using the function name string?

2009-09-17 Thread wireless
(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 > > > > > >