Hi All, I'm writing a Max/MSP [1] external in clojure by compile clojure code to java classes. A simplified version of my code is here: https://gist.github.com/195b4a3f3d1c7b559d82 . For most of you who are not familiar with MaxMSP external writing, MaxObject/post is just like println.
In this code what I want to achieve is given a message, determine if it’s a valid command, and (if yes) invoke the corresponding function. I tried to use (resolve (symbol msg)) to find the corresponding function, however it returns nil. I did some simple tests, shown in line 31-34 of the code I pasted. What I find is that, in the method call, the namespace is "clojure.core" (line 31), I can find the function by explicitly provide the namespace of current file (line 32-33), but failed if I only use resolve (even the function I want to resolve to is also in current file). I wonder if it's normal. [1]: http://cycling74.com/ -- -- 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