[plt-scheme] Problem with call/cc and multiple values

From: Neil Toronto (ntoronto at cs.byu.edu)
Date: Fri Mar 6 00:43:42 EST 2009

I'm using DrScheme 4.1.3. Here's the problem:

     > (values 1 2)
     1
     2
     > (let/cc return
         (return (values 1 2)))
     . . context expected 1 value, received 2 values: 1 2

The context is definitely not expecting one value. call/cc and let/ec 
also give this error. I think it's supposed to work, though. From the docs:

     "The arguments supplied to an applied procedure become
     the result values for the restored continuation. In
     particular, if multiple arguments are supplied, then the
     continuation receives multiple results."

Neil


Posted on the users mailing list.