GNU bug report logs - #42757
calling internal define with incorrect n(args) gives invalid error

Previous Next

Package: guile;

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

Date: Sat, 8 Aug 2020 07:00:02 UTC

Severity: normal

Merged with 42345

Found in version 3.0.4

To reply to this bug, email your comments to 42757 AT debbugs.gnu.org.

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#42757; Package guile. (Sat, 08 Aug 2020 07:00: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. (Sat, 08 Aug 2020 07:00: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: calling internal define with incorrect n(args) gives invalid error
Date: Sat, 8 Aug 2020 06:58:53 +0000
[Message part 1 (text/plain, inline)]
Using guile 3.0.1 (also tested with 3.0.4)

Consider following snippet
------
(define (outer-function)
  (define (inner-function q w e r t y)  ;takes 6 args
    #f)
  (inner-function 'a 'b 'c 'd 'e))     ;send 5 args
(outer-function)
------

The internally defined function is called with insufficient args. We'd
expect error to be
"Wrong number of arguments to inner-function"

Instead the error is
"Wrong number of arguments to a"

Note if the invalid code is not internally-defined, the error is correct:
"Wrong number of arguments to #<procedure inner-function (q w e r t y)>"
[Message part 2 (text/html, inline)]

Merged 42345 42757. Request was from Taylan Kammer <taylan.kammer <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 23 May 2021 19:59:02 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 310 days ago.

Previous Next


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