From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: kawa@sourceware.org
Subject: "void-valued expression where value is needed"
Date: Tue, 20 Sep 2022 23:02:22 +0200 [thread overview]
Message-ID: <CAMFYt2aCMc90b6Mkb0E70sfmOHoipnYAmUJQQkNXYP_Z2ALyiA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
Suppose that I have some code like
(define (f)::void
(call-with-values
(λ () #!void)
(λ result
(apply values result))))
When I compile it, Kawa issues the warning:
void-valued expression where value is needed
I wonder whether this warning is desired in such circumstances?
(It surely makes it difficult to write values-agnostic macros)
What is interesting is that the warning disappears if I replace #!void with
(values) [unless I declare the function's return type as ::void].
next reply other threads:[~2022-09-20 21:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 21:02 Panicz Maciej Godek [this message]
2022-09-20 21:41 ` Arvydas Silanskas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMFYt2aCMc90b6Mkb0E70sfmOHoipnYAmUJQQkNXYP_Z2ALyiA@mail.gmail.com \
--to=godek.maciek@gmail.com \
--cc=kawa@sourceware.org \
/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).