unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#42757: calling internal define with incorrect n(args) gives invalid error
@ 2020-08-08  6:58 Christopher Lam
  0 siblings, 0 replies; only message in thread
From: Christopher Lam @ 2020-08-08  6:58 UTC (permalink / raw)
  To: 42757

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

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)>"

[-- Attachment #2: Type: text/html, Size: 864 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-08  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-08  6:58 bug#42757: calling internal define with incorrect n(args) gives invalid error Christopher Lam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).