bug-guile
[Top][All Lists]
Advanced

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

bug#38617: should internal defines be callable with incorrect number of


From: Christopher Lam
Subject: bug#38617: 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)
=-=-=

reply via email to

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