On Tue, Aug 16, 2011 at 12:36 PM, rakesh <[email protected]> wrote: > In java the finally block is executed after the catch block. But in > clojure, I observed that the finally block is executed before catch > block. Is this behavior right.
Are you sure? user=> (try (println "in try") (throw (Exception. "oops!")) (catch Exception e (println "caught it!")) (finally (println "...and finally"))) in try caught it! ...and finally nil -- 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 [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
