unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Jean Abou Samra <jean@abou-samra.fr>, Guile User <guile-user@gnu.org>
Subject: Re: Why does compile discard multiple values?
Date: Wed, 10 Aug 2022 20:08:34 +0200	[thread overview]
Message-ID: <1ad81212-6977-8b68-1c6b-30c383ab02f2@telenet.be> (raw)
In-Reply-To: <9f083148-6764-5943-9042-665e2b1c6099@abou-samra.fr>


[-- Attachment #1.1.1: Type: text/plain, Size: 818 bytes --]


On 10-08-2022 15:01, Jean Abou Samra wrote:
> 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? [...]

Sounds like a bug to me (it's not a documented limitation). I would 
report it.

Greetings,
Maxime


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  parent reply	other threads:[~2022-08-10 18:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-08-10 18:11   ` Jean Abou Samra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ad81212-6977-8b68-1c6b-30c383ab02f2@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=guile-user@gnu.org \
    --cc=jean@abou-samra.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).