diff options
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -33055,10 +33055,12 @@ using the .code format string and additional arguments. -.coNP Macro @ catch +.coNP Macros @ catch and @ catch* .synb .mets (catch < try-expression .mets \ \ >> {( symbol <> ( arg *) << body-form *)}*) +.mets (catch* < try-expression +.mets \ \ >> {( symbol >> ( type-arg << arg *) << body-form *)}*) .syne .desc The @@ -33113,6 +33115,18 @@ If there is only one element, takes on the value .codn nil . +The +.code catch* +macro is a variant of +.code catch +with the following difference: when +.code catch* +invokes a clause, it passes the exception symbol as the leftmost argument +.metn type-arg . +Then the exception arguments follow. In contrast, +only the exception arguments are passed to the clauses of +.codn catch . + Also see: the .code unwind-protect operator, and the functions |