Prompt handler Shiro Kawai (06 Nov 2022 09:33 UTC)
Re: Prompt handler Marc Nieper-Wißkirchen (06 Nov 2022 11:22 UTC)
Re: Prompt handler Marc Nieper-Wißkirchen (06 Nov 2022 11:27 UTC)

Re: Prompt handler Marc Nieper-Wißkirchen 06 Nov 2022 11:22 UTC

Am So., 6. Nov. 2022 um 10:33 Uhr schrieb Shiro Kawai <xxxxxx@gmail.com>:
>
> The handler passed to call-with-continuation-prompt is only called if the continuation up to teh same prompt tag is aborted by abort-current-continuation, correct?

Yes.

> If that's the case, wouldn't it be more understandable to name it something like abort-handler?

I'll do the change.

>
> Another confusing part is that call-with-continuation-prompt takes an argument named thunk, and in its description, it says "The default handler is a procedure that takes a single argument thunk."  This "thunk" is totally unrelated to the former thunk argument; it might be better to give it a different name.

Okay!