[plt-scheme] shift/reset and multiple arguments

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Jul 17 07:11:17 EDT 2009

At Fri, 17 Jul 2009 01:00:08 -0400, Edwin Zacharias wrote:
> The delimited continuation captured by shift does not seem to support
> arity other than 1 while control does.  Here's an example:
> 
> > (require scheme/control)
> > (reset (shift f (f)))
> . . procedure ...mzlib/control.ss:142:25: expects 1 argument, given 0
> > (prompt (control f (f)))

This is fixed in SVN, so that a `shift'-captured continuation can
accept any number of arguments.



Posted on the users mailing list.