> (Ctrl-C pressed here) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > KeyboardInterrupt
That is something I miss from SBCL. In SLIME-SBCL, you can just Ctrl- C Ctrl-C to interrupt your code. I think it's not possible (or at least easy) in Clojure without adding debugging cruft to your compiled code, since in general once your code gets going there's no safe way to stop it. (In the future, this might be a nice option to add to the compiler ...). Killing threads is depracated in Java since it can cause all sorts of nastiness. This was one of my motivations for writing these timing utils: http://groups.google.com/group/clojure/browse_frm/thread/231cc06b4b13744c?hl=en# If you wrap your code in "time-limit", and make sure to call (timeout) periodically within it, it will automatically be killed if it runs too long. And, even if you don't run your code in a "time-limit", you can call (interrupt-all-threads) to kill it. This also screws with the REPL and other threads in the ecosystem, but I've found that in SLIME I can usually just start up a new REPL and pick up where I left off without losing any state. I'm sure this could be improved upon greatly, but it's worked for me so far. Cheers, Jason --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---