[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58739: Lack of error message about number of args (?native compilati
From: |
Alan Mackenzie |
Subject: |
bug#58739: Lack of error message about number of args (?native compilation?) |
Date: |
Sat, 29 Oct 2022 16:04:22 +0000 |
On Sat, Oct 29, 2022 at 15:48:35 +0300, Eli Zaretskii wrote:
> > Cc: 58739@debbugs.gnu.org
> > Date: Sat, 29 Oct 2022 12:04:36 +0000
> > From: Alan Mackenzie <acm@muc.de>
> > > to me this fix looks like a good idea (assuming changing the definition
> > > of MANY is acceptable).
> > We'll see what Eli says.
> About what, may I ask?
My patch for this bug.
As a quick summary, the cause of spurious warning messages in the byte
compiler was subr-arity returning (12 . many) rather than the correct
(12 . 12) for a native compiled function with exactly 12 parameters.
I've corrected this, by making subr-arity return (12 . 12), and I
committed the patch earlier on this afternoon.
In the process, MANY came to be defined to mean "has &rest parameters".
I think you'll be interested in the patch.
--
Alan Mackenzie (Nuremberg, Germany).
Message not available