summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-02-06 22:24:33 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-02-06 22:24:33 -0800
commit55cc849371a0dc0782f3f749cb58c46e0a558e40 (patch)
treef82e0ff125c582ef2753fef122e4761a9a4533e2 /ChangeLog
parent3b7f7ef0422537391879d356e61baa50f74483a1 (diff)
downloadtxr-55cc849371a0dc0782f3f749cb58c46e0a558e40.tar.gz
txr-55cc849371a0dc0782f3f749cb58c46e0a558e40.tar.bz2
txr-55cc849371a0dc0782f3f749cb58c46e0a558e40.zip
Slight internal representation change of string-only exceptions.
One upshot of all this is that (throw 'foo "msg") now does exactly the same thing as (throwf 'foo "msg"). A message-only exception really is a one-string exception argument list ("message ..."), like the documentation says. * unwind.h (struct uw_catch): exception member renamed to args. (uw_catch): Macro follows structure member rename. * eval.c (op_catch): Removed now unnecessary kludge of turning non-list exception argument list into a one-element argument list. * match.c (v_try): Similar hack to the one in op_catch removed here. * unwind.c (uw_unwind_to_exit_point, uw_push_catch): Follows rename of exception member. (uw_throw): The exception parameter is renamed to args. The kludge removed from op_catch re-appears here, because numerous calls to uw_throw just pass a string as args. It's less of a kludge here because this is the master entry point to exception processing, and it straightens out the representation right away. The exception arguments or message are printed in a clearer way.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog27
1 files changed, 27 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4243ab4c..9708b7cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,32 @@
2015-02-06 Kaz Kylheku <kaz@kylheku.com>
+ Slight internal representation change of string-only exceptions.
+
+ One upshot of all this is that (throw 'foo "msg") now
+ does exactly the same thing as (throwf 'foo "msg").
+ A message-only exception really is a one-string exception argument
+ list ("message ..."), like the documentation says.
+
+ * unwind.h (struct uw_catch): exception member renamed to args.
+ (uw_catch): Macro follows structure member rename.
+
+ * eval.c (op_catch): Removed now unnecessary kludge of turning non-list
+ exception argument list into a one-element argument list.
+
+ * match.c (v_try): Similar hack to the one in op_catch
+ removed here.
+
+ * unwind.c (uw_unwind_to_exit_point, uw_push_catch): Follows rename of
+ exception member.
+ (uw_throw): The exception parameter is renamed to args. The kludge
+ removed from op_catch re-appears here, because numerous calls
+ to uw_throw just pass a string as args. It's less of a kludge here
+ because this is the master entry point to exception processing,
+ and it straightens out the representation right away.
+ The exception arguments or message are printed in a clearer way.
+
+2015-02-06 Kaz Kylheku <kaz@kylheku.com>
+
Serious bugfix in the op macro, and derived macro, in
the handling of missing meta-numbers (for
instance (op ... @1 .. @3): 1 and 3 occur, but not 2.