unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: <tomas@tuxteam.de>
To: "Tommi Höynälänmaa" <tommi.hoynalanmaa@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: Unwind-protect
Date: Mon, 28 Oct 2024 11:29:29 +0100	[thread overview]
Message-ID: <Zx9nib6IW6c00iWn@tuxteam.de> (raw)
In-Reply-To: <de339689-d68c-06b5-56e9-e52aab1c00ef@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

On Mon, Oct 28, 2024 at 12:00:54PM +0200, Tommi Höynälänmaa wrote:
> Does Guile have unwind-protect? If not, how could it be implemented?

I think you are looking for dynamic-wind: this one covers the fact
that in Scheme, you can not only leave a dynamic context through
the side door -- you can enter it, too,

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2024-10-28 10:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-28 10:00 Unwind-protect Tommi Höynälänmaa
2024-10-28 10:29 ` tomas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-28 14:55 Unwind-protect Tommi Höynälänmaa
2024-10-28 16:57 ` Unwind-protect tomas
2024-10-28 17:20 ` Unwind-protect Maxime Devos via General Guile related discussions
2024-10-28 17:34 ` Unwind-protect Maxime Devos via General Guile related discussions
2024-10-28 15:35 Unwind-protect Tommi Höynälänmaa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Zx9nib6IW6c00iWn@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=guile-user@gnu.org \
    --cc=tommi.hoynalanmaa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).