Does continuation marks take a snapshot? Shiro Kawai (15 Oct 2022 11:25 UTC)
Re: Does continuation marks take a snapshot? Marc Nieper-Wißkirchen (15 Oct 2022 22:22 UTC)
Re: Does continuation marks take a snapshot? Shiro Kawai (15 Oct 2022 23:26 UTC)
Re: Does continuation marks take a snapshot? Marc Nieper-Wißkirchen (16 Oct 2022 08:41 UTC)
Re: Does continuation marks take a snapshot? Shiro Kawai (16 Oct 2022 10:35 UTC)
Re: Does continuation marks take a snapshot? Marc Nieper-Wißkirchen (17 Oct 2022 05:59 UTC)
Re: Does continuation marks take a snapshot? Shiro Kawai (19 Oct 2022 07:02 UTC)
Re: Does continuation marks take a snapshot? Shiro Kawai (28 Oct 2022 17:14 UTC)
Re: Does continuation marks take a snapshot? Marc Nieper-Wißkirchen (28 Oct 2022 17:47 UTC)

Re: Does continuation marks take a snapshot? Marc Nieper-Wißkirchen 28 Oct 2022 17:47 UTC

Am Fr., 28. Okt. 2022 um 19:14 Uhr schrieb Shiro Kawai <xxxxxx@gmail.com>:
>
> Now Gauche starts to support continuation marks natively (only the basic srfi-157 is implemented and I'll expand it toward srfi-226).

This is excellent news!

>  So far as I understood, continuation marks *is* the dynamic environment, without revealing too much internal details, isn't it?

I think one can formulate it in this way.

> Previously, I managed various internal dynamic contexts (e.g. exception handlers, parameters) by dynamic-wind; when a continuation is invoked, before and after handlers work hard to restore the dynamic state.  Once I reversed the design, that is, letting continuation frames to hold the tip of the current dynamic environment chain and simply restore it when popped, things seem to become a lot simpler.

It is good to hear that it simplifies things because this is how new
features for Scheme should behave if possible.

Marc