Hi, On Thu, Apr 22, 2010 at 20:17, Base <basselh...@gmail.com> wrote: > say i have a string that contains a form: > > "(+ 1 1)" > > I want to actually execute this. How do you do this? I thought that > eval would be able to handle this but apparently am misunderstanding > what eval does.
You need to read the string first: user=> (read-string "(+ 1 1)") (+ 1 1) user=> (eval (read-string "(+ 1 1)")) 2 Mike -- 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