Summary

nested guard forms loop

Metadata

Attachments

Description

Reported by Daniel Colascione:

This runs forever. Should print caught and exit.

 (import (scheme base) (scheme write))

 (write
  (guard (catcher (else 'caught))
    (guard (outer (#f #f))
      (guard (inner (#f #f))
        (raise 'boom)))))
 (newline)

Changes and comments

[2026-09-08 20:31:50 UTC] felix attached a.scm

[2026-09-08 20:32:25 UTC] felix wrote:

Attached a file with a "clean room" implementation, for experimentation.