[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] wrong number of arguments to continuation when escap
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] wrong number of arguments to continuation when escaping? |
Date: |
Thu, 18 Jul 2019 08:49:13 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Thu, Jul 18, 2019 at 08:13:53AM +0200, Marco Maggi wrote:
> Not sure if I understand. The problem lies in the context in which the
> call to DOIT is performed?
Yes, exactly.
> it expects any number of values in:
>
> (call-with-values
> doit
> (lambda args (apply values args)))
>
> so no error?
Right. call-with-values sets up a different type of continuation,
one that accepts an arbitrary number of values. Standard continuations
allow only one argument.
Cheers,
Peter
signature.asc
Description: PGP signature