cyclone/scheme
yorickhardy 2b0f0601a6
Raise errors and objects with different tags (#557)
* tests/base.scm: add two tests for issue #556

The two tests are adapted from issue #556 (originally from r7rs).
The tests currently fail because errors and raised objects are
treated in the same way.

* Use different tags for raised objects and raised errors

The behaviour for raising an error (error message irritants) and
objects (raise object) are different in r7rs. So tag error objects
differently, and adjust the raised object handling to handle
the raised object instead of a list containing the raised object.

This should resolve issue #556.

* runtime: use the correct string length for comparison

Fix for the pull request adressing issue #556.

* runtime: distinguish exceptions and errors in default handler

* repl: use error-object? to decide whether an error or an exception was raised

This makes error messages a bit more informative.  Also, if error objects become
a distinct type, then the repl implementation will continue to be correct. The
(deleted) second cond clause seemed to be bit redundant - I am not sure what the
original intent was.

* tests/base.scm: revert accidental deletion of else clause

* Display exceptions as errors for consistency
2025-02-23 16:23:16 -05:00
..
cyclone Issue #552 - Add 'else' clause for cond-expands 2025-01-18 10:38:35 -08:00
base.sld Raise errors and objects with different tags (#557) 2025-02-23 16:23:16 -05:00
case-lambda.sld Added header comment block. 2016-02-14 22:35:04 -05:00
char.sld Use fast version of member 2016-10-15 18:19:18 -04:00
complex.sld Build-out make-rectangular 2018-05-10 13:24:24 -04:00
cxr.sld Fix (scheme cxr) definitions 2019-12-01 20:53:21 -06:00
eval.sld Issue #537 - Add useful comments 2024-05-21 18:41:41 -07:00
file.sld Added header comment block. 2016-02-14 22:35:04 -05:00
inexact.sld Cleanup 2024-03-14 19:42:42 -07:00
lazy.sld Updated force to recursively force promises. 2020-09-15 12:42:02 -04:00
load.sld Allow (load) to read source location information 2020-07-23 15:52:36 -04:00
process-context.sld Set immutable flag 2019-05-01 17:41:47 -04:00
read.sld Issue #530 - Handle parsing of +i / -i 2024-03-13 19:31:58 -07:00
repl.sld Raise errors and objects with different tags (#557) 2025-02-23 16:23:16 -05:00
time.sld Cleaned-up timing code 2021-03-05 22:57:33 -03:00
write.sld Added aliases for missing write functions 2016-09-27 18:01:40 -04:00