[plt-scheme] Problem with call/cc and multiple values
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