unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Why does compile discard multiple values?
@ 2022-08-10 13:01 Jean Abou Samra
  2022-08-10 13:11 ` Jean Abou Samra
  2022-08-10 18:08 ` Maxime Devos
  0 siblings, 2 replies; 5+ messages in thread
From: Jean Abou Samra @ 2022-08-10 13:01 UTC (permalink / raw)
  To: Guile User

Hi,

See:

$ guile3.0
GNU Guile 3.0.7
Copyright (C) 1995-2021 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)> (eval '(values 1 2) (current-module))
$1 = 1
$2 = 2
scheme@(guile-user)> (use-modules (system base compile))
scheme@(guile-user)> (compile '(values 1 2) #:env (current-module))
$3 = 1


Is it expected that compile doesn't cope with a return of
multiple values?

I can work around that using

((compile `(lambda () ,my-form)
           #:env (current-module)))

but I would have expected it to work out of the box. Should
I raise it on the bug tracker?

Thanks,
Jean




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

end of thread, other threads:[~2022-08-10 18:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 13:01 Why does compile discard multiple values? Jean Abou Samra
2022-08-10 13:11 ` Jean Abou Samra
2022-08-10 13:20   ` Jean Abou Samra
2022-08-10 18:08 ` Maxime Devos
2022-08-10 18:11   ` Jean Abou Samra

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).