GNU bug report logs - #38617
should internal defines be callable with incorrect number of args?

Previous Next

Package: guile;

Reported by: Christopher Lam <christopher.lck <at> gmail.com>

Date: Sun, 15 Dec 2019 01:04:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38617 in the body.
You can then email your comments to 38617 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#38617; Package guile. (Sun, 15 Dec 2019 01:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Lam <christopher.lck <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sun, 15 Dec 2019 01:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Lam <christopher.lck <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: should internal defines be callable with incorrect number of args?
Date: Sun, 15 Dec 2019 01:02:41 +0000
[Message part 1 (text/plain, inline)]
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)
=-=-=
[Message part 2 (text/html, inline)]

Reply sent to Andy Wingo <wingo <at> pobox.com>:
You have taken responsibility. (Sun, 12 Jan 2020 20:53:01 GMT) Full text and rfc822 format available.

Notification sent to Christopher Lam <christopher.lck <at> gmail.com>:
bug acknowledged by developer. (Sun, 12 Jan 2020 20:53:02 GMT) Full text and rfc822 format available.

Message #10 received at 38617-done <at> debbugs.gnu.org (full text, mbox):

From: Andy Wingo <wingo <at> pobox.com>
To: Christopher Lam <christopher.lck <at> gmail.com>
Cc: 38617-done <at> debbugs.gnu.org
Subject: Re: bug#38617: should internal defines be callable with incorrect
 number of args?
Date: Sun, 12 Jan 2020 21:52:20 +0100
On Sun 15 Dec 2019 02:02, Christopher Lam <christopher.lck <at> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 10 Feb 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.