Looks like it doesn't work in 1.2.1 but does work in 1.3.0:

(! 516)-> lein repl
REPL started; server listening on localhost port 61980
user=> (clojure-version)
"1.2.1"
user=>  (defn my-inc [x] (+ x 1))
#'user/my-inc
user=>  (eval '(my-inc 1))
2
user=> (future (eval '(my-inc 1)))
java.lang.Exception: Unable to resolve symbol: my-inc in this context
user=> ^D

Fri Sep 02 15:37:24
(sean)-(jobs:0)-(~/clojure/stable)
(! 517)-> cd ../beta1/

Fri Sep 02 15:37:30
(sean)-(jobs:0)-(~/clojure/beta1)
(! 518)-> lein repl
REPL started; server listening on localhost port 48094
user=> (clojure-version)
"1.3.0-beta1"
user=> (defn my-inc [x] (+ x 1))
#'user/my-inc
user=> (eval '(my-inc 1))
2
user=> (future (eval '(my-inc 1)))
#<core$future_call$reify__5733@739abd2b: 2>
user=> (deref *1)
2
user=>
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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