emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38617: closed (should internal defines be callable with incorrect nu


From: GNU bug Tracking System
Subject: bug#38617: closed (should internal defines be callable with incorrect number of args?)
Date: Sun, 12 Jan 2020 20:53:01 +0000

Your message dated Sun, 12 Jan 2020 21:52:20 +0100
with message-id <address@hidden>
and subject line Re: bug#38617: should internal defines be callable with 
incorrect number of args?
has caused the debbugs.gnu.org bug report #38617,
regarding should internal defines be callable with incorrect number of args?
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38617: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38617
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: should internal defines be callable with incorrect number of args? Date: Sun, 15 Dec 2019 01:02:41 +0000
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)
=-=-=

--- End Message ---
--- Begin Message --- Subject: Re: bug#38617: should internal defines be callable with incorrect number of args? Date: Sun, 12 Jan 2020 21:52:20 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
On Sun 15 Dec 2019 02:02, Christopher Lam <address@hidden> 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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]