Exceptions: Difference between revisions

Content deleted Content added
some "exceptions" using Common Lisp conditions
a note on common lisp's THROW and CATCH
Line 319: Line 319:


A good introduction to Lisp's condition system is the chapter [http://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html Beyond Exception Handling: Conditions and Restarts] from Peter Seibel's [http://gigamonkeys.com/book/ Practical Common Lisp].
A good introduction to Lisp's condition system is the chapter [http://gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html Beyond Exception Handling: Conditions and Restarts] from Peter Seibel's [http://gigamonkeys.com/book/ Practical Common Lisp].

In Common Lisp, there are functions <code>[http://www.lispworks.com/documentation/HyperSpec/Body/s_throw.htm throw]</code> and <code>[http://www.lispworks.com/documentation/HyperSpec/Body/s_catch.htm catch]</code>, but these are not related to the condition system. Rather, they provide another mechanism for non-local control transfer.


=={{header|D}}==
=={{header|D}}==