Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

values as argument to function that use call-with-values #54

Open
jcubic opened this issue Jan 16, 2024 · 0 comments
Open

values as argument to function that use call-with-values #54

jcubic opened this issue Jan 16, 2024 · 0 comments

Comments

@jcubic
Copy link
Contributor

jcubic commented Jan 16, 2024

Example code:

(define (foo vals)
  (call-with-values (lambda () vals) (lambda args (apply + args))))

(foo (values 1 2 3 4))
  • Kawa, Gamibt, and my LIPS return 10
  • Chicken, Guile returns 1

In the R7RS spec, it says that it's unspecified behavior to accept multiple values in continuations.

It may require more testing with more implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant