unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* question about values
@ 2020-03-17 23:50 Massimiliano Gubinelli
  2020-03-18  6:12 ` Taylan Kammer
  0 siblings, 1 reply; 11+ messages in thread
From: Massimiliano Gubinelli @ 2020-03-17 23:50 UTC (permalink / raw)
  To: guile-user

Hi all,

 I do not understand what happens here:

mgubi@Ulrike guile3-usr % guile
guile> (version)
"1.8.8"
guile> (call-with-values (lambda () (let ((a (values "a" "b" "c"))) a)) (lambda body body))
("a" "b" "c")


mgubi@Ulrike guile3-usr % bin/guile
GNU Guile 3.0.1
Copyright (C) 1995-2020 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (version)
$1 = "3.0.1"
scheme@(guile-user)> (call-with-values (lambda () (let ((a (values "a" "b" "c"))) a)) (lambda body body))
$2 = ("a")


Why the two versions of Guile behave differently? Which is the "correct" behaviour, and in case: how to propagate multiple results safely?

Thanks!

Massimiliano




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-03-18 15:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-17 23:50 question about values Massimiliano Gubinelli
2020-03-18  6:12 ` Taylan Kammer
2020-03-18  9:55   ` Massimiliano Gubinelli
2020-03-18 11:06     ` Massimiliano Gubinelli
2020-03-18 12:39     ` Matt Wette
2020-03-18 13:11       ` Massimiliano Gubinelli
2020-03-18 14:06         ` John Cowan
2020-03-18 14:40           ` Massimiliano Gubinelli
2020-03-18 14:48             ` Massimiliano Gubinelli
2020-03-18 15:08               ` tomas
2020-03-18 15:34                 ` Massimiliano Gubinelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).