* bug#42345: 3.0.4 says "wrong num' of arg's to 1" vs 2.2.4: "wrong num' of arg's to baz"
[not found] <b79d72d9-2a1c-770d-35cb-b74a718cfb73@gmail.com>
@ 2020-07-13 16:41 ` Matt Wette
0 siblings, 0 replies; only message in thread
From: Matt Wette @ 2020-07-13 16:41 UTC (permalink / raw)
To: 42345
In Guile 3.0.4, the program below results in the error:
/home/mwette/zz.scm:5:2: In procedure bar:
Wrong number of arguments to 1
In Guile 2.2.4, the same program results in the error:
;;; /home/mwette/zz.scm:11:14: warning: wrong number of arguments to `bar'
;;; compiled
/home/mwette/.cache/guile/ccache/2.2-LE-8-3.A/home/mwette/zz.scm.go
However, once compiled, Guile 3.0.4, will repeat the same error message,
while Guile 2.2.4, will not report any error.
I consider reporting "1" as the name of a procedure a bug.
Here is the program:
(define (foo)
(define (bar a b)
(+ a b))
(define (baz)
(let* ((a 1)
(b 2)
(r (bar a b a)))
r))
(baz))
(foo)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-13 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <b79d72d9-2a1c-770d-35cb-b74a718cfb73@gmail.com>
2020-07-13 16:41 ` bug#42345: 3.0.4 says "wrong num' of arg's to 1" vs 2.2.4: "wrong num' of arg's to baz" Matt Wette
unofficial mirror of bug-guile@gnu.org
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://yhetil.org/guile-bugs/0 guile-bugs/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 guile-bugs guile-bugs/ https://yhetil.org/guile-bugs \
bug-guile@gnu.org
public-inbox-index guile-bugs
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.yhetil.org/yhetil.lisp.guile.bugs
nntp://news.gmane.io/gmane.lisp.guile.bugs
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git