Bug fixed in the forthcoming Clojure 1.5:
http://dev.clojure.org/jira/browse/CLJ-667
% java -cp clojure.jar clojure.main
Clojure 1.5.0-master-SNAPSHOT
user=> (try nil (finally (doseq [x (range 10)] (println x))))
0
1
2
3
4
5
6
7
8
9
nil
Andy
On Jan 30, 2013, at 8:42 AM, nick rothwell wrote:
> Is there a reason why this isn't allowed?
>
> user> (try nil (finally (doseq [x (range 10)] (println x))))
> CompilerException java.lang.UnsupportedOperationException: Cannot recur from
> catch/finally, compiling:(NO_SOURCE_PATH:1)
>
> Is this some JVM restriction?
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.