[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
R6RS exception printing at the REPL
From: |
Andreas Rottmann |
Subject: |
R6RS exception printing at the REPL |
Date: |
Sun, 24 Oct 2010 23:46:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi!
Attached is a patch that improves the way R6RS exceptions are printed at
the REPL; previously:
scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (assertion-violation 'foo "hey!" 1 2 3)
Throw to key `r6rs:exception' with args
`(#<r6rs:record:&raise-object-wrapper>)'.
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]>
With the patch:
scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (assertion-violation 'foo "hey!" 1 2 3)
ERROR: R6RS exception:
1. &assertion
2. &who: foo
3. &message: "hey!"
4. &irritants: (1 2 3)
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]>
r6rs-exception-print.diff
Description: Text Data
Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- R6RS exception printing at the REPL,
Andreas Rottmann <=