Changeset 33129 in project


Ignore:
Timestamp:
01/24/16 12:34:03 (3 years ago)
Author:
juergen
Message:

simple-exceptions 0.2 docu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/simple-exceptions

    r31761 r33129  
    4949
    5050but other handlers are provided as well, in particular, guard of R6RS
    51 and R7RS, and with-handler, which has the same syntax as Chicken's
     51and R7RS, and with-exn-handler, which has the same syntax as Chicken's
    5252with-exception-handler, but avoids its subtleties. For example, the
    5353follwing code does what you expect, it returns 0.
    5454
    5555<enscript highlight=scheme>
    56 (with-handler (lambda (exn) 0) (lambda () (car '())))
     56(with-exn-handler (lambda (exn) 0) (lambda () (car '())))
    5757</enscript>
    5858
     
    106106In essence chicken's abort.
    107107
    108 ==== with-handler
    109 <procedure>(with-handler handler thunk)</procedure>
     108==== with-exn-handler
     109<procedure>(with-exn-handler handler thunk)</procedure>
    110110A save version of chicken's low-level with-exception-handler.
    111111Sets the current-exception-handler to handler for the dynamic extent of
     
    135135== Last update
    136136
    137 Nov 03, 2014
     137Jan 24, 2016
    138138
    139139== Author
     
    143143== License
    144144
    145  Copyright (c) 2014, Juergen Lorenz
     145 Copyright (c) 2014-2016, Juergen Lorenz
    146146 All rights reserved.
    147147
     
    174174== Version History
    175175
     176; 0.2 : with-handler renamed with-exn-handler
    176177; 0.1 : initial import
    177178
Note: See TracChangeset for help on using the changeset viewer.