[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42345: 3.0.4 says "wrong num' of arg's to 1" vs 2.2.4: "wrong num' o
bug#42345: 3.0.4 says "wrong num' of arg's to 1" vs 2.2.4: "wrong num' of arg's to baz"
Mon, 13 Jul 2020 09:41:06 -0700
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
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'
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 (bar a b)
(+ a b))
(let* ((a 1)
(r (bar a b a)))
|[Prev in Thread]
||[Next in Thread]|
- 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 <=