[I accidentally sent an incomplete version, here’s the rest]
Under the assumption that continuations are used as a form of userspace
context-switching and that dynamic-wind is used for cleanup (and maybe
acquisition if you want to) of resources (and this cleanup shouldn’t be caused
by context s
>Unwind-protect and dynamic-wind are not the same thing. See
>http://www.nhplace.com/kent/PFAQ/unwind-protect-vs-continuations-original.html
>
> - Tommi
Err, that web page is simply incorrect on this matter, unless Lisp and Scheme
are assigning different meanings to the same words. (If they
On Mon, Oct 28, 2024 at 04:55:01PM +0200, Tommi Höynälänmaa wrote:
> Unwind-protect and dynamic-wind are not the same thing. See
>
> http://www.nhplace.com/kent/PFAQ/unwind-protect-vs-continuations-original.html
I know (thanks for the interesting link, anyway :)
BTW: doesn't Guile favour delimit
Unwind-protect and dynamic-wind are not the same thing. See
http://www.nhplace.com/kent/PFAQ/unwind-protect-vs-continuations-original.html
- Tommi
--
Kotisivu / Homepage: http://www.iki.fi/tohoyn/
Sähköposti / E-Mail: tommi.hoynalan...@iki.fi
GPG-sormenjälki / GPG fingerprint:
55F4 2477 71
Actually I found a simple solution for this problem.
- Tommi
--
Kotisivu / Homepage: http://www.iki.fi/tohoyn/
Sähköposti / E-Mail: tommi.hoynalan...@iki.fi
GPG-sormenjälki / GPG fingerprint:
55F4 2477 7155 3528 5CB2 2B7A BB86 1FDE 4046 0F83
FT, Debian-ylläpitäjä / PhD, Debian Maintainer
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 ent