[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: exception from inside false-if-exception?
From: |
Attila Lendvai |
Subject: |
RE: exception from inside false-if-exception? |
Date: |
Mon, 17 Jun 2024 19:57:58 +0000 |
apparently this has been fixed between 3.0.9 and HEAD. i've wasted my time
chasing a ghost...
can we please have a new release? :)
as a sidenote, i also had some broken expectations in my test.scm.
it's a tangential, but namely, when #:unwind #t then the handler in a w-e-h
returns from the w-e-h block, but with #:unwind #f it tries to return to the
RAISE that raised the condition. i.e. a lousy little keyword arg (usually a
page down) fundamentally changes the behavior of w-e-h. yet another surprise
that violated my expectations regarding APIs.
anyway, i've attached a patch that clarifies what's happening for anyone who
stumbles upon this; i.e. be clearer that (?) a backtrace is printed due to
reaching a continuation barrier.
this makes it grep'able, and if the user also prints a backtrace, then it makes
it clear that it's something printed by guile.
if someone wants to investigate further, then i'm also attaching a new version
of my test.scm that behaves in an unexpected way on 3.0.9, but not on HEAD
(more specifically on guile-next in guix, which is a rather recent commit).
HTH,
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
All men dream, but not equally. Those who dream by night in the dusty recesses
of their minds wake in the day to find that it was vanity. But the dreamers of
the day are dangerous men, for they may act their dream with open eyes to make
it possible.
0001-More-specific-error-message-for-exceptions-at-contin.patch
Description: Text Data
test.scm
Description: Text Data