whalesong icon indicating copy to clipboard operation
whalesong copied to clipboard

returning zero values causes bad things

Open dyoo opened this issue 12 years ago • 1 comments

Bug: returning zero values to a continuation is breaking. I need to simplify the multiple-value-return procedure so it's less error-prone.

dyoo avatar Mar 23 '12 18:03 dyoo

The error I'm seeing is more than just zero arity. I'm seeing that:

(call/cc (lambda (k) (k 3 4 5)))

fails. It should return three values instead to its continuation instead. That is, Whalesong is currently doing:

> (procedure-arity (call/cc (lambda (k) k)))
1

and that's wrong: it should really be a vararity function returning multiple values back.

dyoo avatar Mar 05 '13 19:03 dyoo