Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-18 Thread felix . winkelmann
> 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

Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-18 Thread Peter Bex
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

Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-18 Thread Marco Maggi
Peter Bex wrote: > On Thu, Jul 18, 2019 at 06:43:06AM +0200, Marco Maggi wrote: >> I do not understand why some place expects 1 argument. The problem goes >> away if I replace: >>(escape) >> with: >>(escape 1) > Hi Marco, > This is a known "issue", see #1390 and #1601. Improving

Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-17 Thread Peter Bex
On Thu, Jul 18, 2019 at 06:43:06AM +0200, Marco Maggi wrote: > I do not understand why some place expects 1 argument. The problem goes > away if I replace: > >(escape) > > with: > >(escape 1) Hi Marco, This is a known "issue", see #1390 and #1601. Improving this so that such

[Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-17 Thread Marco Maggi
Ciao, let's look at this script: (import (scheme) (chicken pretty-print)) (define (doit) (call-with-current-continuation (lambda (escape) (pretty-print 'before) (pretty-print escape) (escape)