Hi,

> (defn y [a b] (+ a b))
> (def x '(y 1 2))
>
> (defn -main []
>   (println (eval x)))
>
> which yields
>
> "Unable to resolve symbol: y in this context (NO_SOURCE_FILE:7)"
> etc.
> What am I missing?

The problem is namespace inside the function used by gen-class (and it
this case your -main function) is set to 'clojure.core and not to your
current namespace. Move your code to some other function and call it
from your -main, I think it should work then.

 --
Krešimir Šojat
-- 
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

Reply via email to