bugGuile - Bugs: bug #30407, exception handler for srfi-18...


bug #30407: exception handler for srfi-18 exceptions not called in tail context

Submitter:  Andy Wingo <wingo>
Submitted:  Sat 10 Jul 2010 04:16:15 PM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Sat 10 Jul 2010 04:16:15 PM UTC, original submission:  

The SRFI-18 spec says:

Primitives and exceptions

When one of the primitives defined in this SRFI raises an exception defined in this SRFI, the exception handler is called with the same continuation as the primitive (i.e. it is a tail call to the exception handler). This requirement avoids having to use call-with-current-continuation to get the same effect in some situations.

However although we do return to the continuation of the primitive, the handler is first invoked from the continuation of the error, not that of the primitive. See the `wrap' procedure around line 250.

Andy Wingo <wingo>
Group administrator


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by wingo (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code