diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | txr.1 | 22 |
2 files changed, 15 insertions, 11 deletions
@@ -1,5 +1,9 @@ 2009-11-19 Kaz Kylheku <kkylheku@gmail.com> + * txr.1: Fixed mangled formatting of exception handling example. + +2009-11-19 Kaz Kylheku <kkylheku@gmail.com> + Get rid of macros in favor of safer inline functions. The recent auto_str("byte str") error could have been caught @@ -2468,17 +2468,17 @@ is visible in the finally clause. Example: -@(try) -@ (try) -@ (next "nonexistent-file") -@ (finally) -@ (accept) -@ (end) -@(catch file_error) -@ (output) -file error caught -@ (end) -@(end) + @(try) + @ (try) + @ (next "nonexistent-file") + @ (finally) + @ (accept) + @ (end) + @(catch file_error) + @ (output) + file error caught + @ (end) + @(end) In this example, the @(next) directive throws an exception of type file_error, because the given file does not exist. The exit point for this exception is the |