National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: Iteration Up: Control Structures Previous: Local Functions

Blocks and Exits

  block tag {form}* [special]

  return-from tag value [special]   return value [macro]   catch tag {form}* [special]   throw tag value [special]
  • exits and returns value from a catch block. tag and value are evaluated.
  unwind-protect protected-form {cleanup-form}* [special]
  • After the evaluation of protected-form finishes, cleanup-form is evaluated. You may make a block or a catch block outside the unwind-protect. Even return-from or throw is executed in protected-form to escape from such blocks, cleanup-form is assured to be evaluated. Also, if you had an error while executing protected-form, cleanup-form would always be executed by reset.


Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996