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.

Full log


View this message in rfc822 format

From: Christopher Lam <christopher.lck <at> gmail.com>
To: 38617 <at> debbugs.gnu.org
Subject: bug#38617: 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)]

This bug report was last modified 5 years and 133 days ago.

Previous Next


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