From: Christopher Lam <christopher.lck@gmail.com>
To: 42757@debbugs.gnu.org
Subject: bug#42757: calling internal define with incorrect n(args) gives invalid error
Date: Sat, 8 Aug 2020 06:58:53 +0000 [thread overview]
Message-ID: <CAKVAZZJY0w_AKvrHj1tXzbs4PP3gOoL8TLNqNZnWak0zc7HUQw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
Using guile 3.0.1 (also tested with 3.0.4)
Consider following snippet
------
(define (outer-function)
(define (inner-function q w e r t y) ;takes 6 args
#f)
(inner-function 'a 'b 'c 'd 'e)) ;send 5 args
(outer-function)
------
The internally defined function is called with insufficient args. We'd
expect error to be
"Wrong number of arguments to inner-function"
Instead the error is
"Wrong number of arguments to a"
Note if the invalid code is not internally-defined, the error is correct:
"Wrong number of arguments to #<procedure inner-function (q w e r t y)>"
[-- Attachment #2: Type: text/html, Size: 864 bytes --]
reply other threads:[~2020-08-08 6:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAKVAZZJY0w_AKvrHj1tXzbs4PP3gOoL8TLNqNZnWak0zc7HUQw@mail.gmail.com \
--to=christopher.lck@gmail.com \
--cc=42757@debbugs.gnu.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).