Next Previous Up Top Contents Index

2.6 The COMMON-EXTENSIONS module

default-last-handler

Function

Summary

Formats and outputs a Dylan condition using format-out and passes control on to the next handler.

Syntax

default-last-handler serious-condition next-handler => ()

Arguments

serious-condition

A object of class <serious-condition>.

next-handler
A function.

Values

None.

Library

common-extensions

Module

common-extensions

Description

A handler utility function defined on objects of class <serious-condition> that can be by bound dynamically around a computation via let handler or installed globally via last-handler-definer.

This function formats and outputs the Dylan condition serious-condition using format-out from the Format-Out library, and passes control on to the next handler.

This function is automatically installed as the last handler if your library uses the Functional-Extensions library.

Example

The following form defines a dynamic handler around some body:

let handler <serious-condition> = default-last-handler;

while the following form installs a globally visible last-handler:

define last-handler <serious-condition>
  = default-last-handler;

See also

last-handler-definer, page 36

win32-last-handler in the C FFI and Win32 library reference, under library win32-user and module win32-default-handler.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index