* bug#38617: should internal defines be callable with incorrect number of args?
@ 2019-12-15 1:02 Christopher Lam
2020-01-12 20:52 ` Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Lam @ 2019-12-15 1:02 UTC (permalink / raw)
To: 38617
[-- Attachment #1: Type: text/plain, Size: 316 bytes --]
See snippet below.
IMHO the second call to add1 should fail. On guile-2.2.6 it does not error
out.
On guile-2.0 it does throw error (as I think it should).
Is this intentional?
=-=-=
(define (main)
(define (add1 num)
(+ num 1))
(display "testing")
(display (add1 2))
(display (add1 2 3)))
(main)
=-=-=
[-- Attachment #2: Type: text/html, Size: 477 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#38617: should internal defines be callable with incorrect number of args?
2019-12-15 1:02 bug#38617: should internal defines be callable with incorrect number of args? Christopher Lam
@ 2020-01-12 20:52 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2020-01-12 20:52 UTC (permalink / raw)
To: Christopher Lam; +Cc: 38617-done
On Sun 15 Dec 2019 02:02, Christopher Lam <christopher.lck@gmail.com> writes:
> See snippet below.
> IMHO the second call to add1 should fail. On guile-2.2.6 it does not error out.
> On guile-2.0 it does throw error (as I think it should).
> Is this intentional?
OMG what an embarrassing bug! Thank you for finding and reporting it!
Fixed on 2.2 and master.
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-12 20:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-15 1:02 bug#38617: should internal defines be callable with incorrect number of args? Christopher Lam
2020-01-12 20:52 ` Andy Wingo
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).