From: Tom Tromey <tom@tromey.com>
To: Hannes Domani <ssbssa@yahoo.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Allow calling of variadic C++ functions
Date: Tue, 12 Dec 2023 13:23:39 -0700 [thread overview]
Message-ID: <871qbrb25w.fsf@tromey.com> (raw)
In-Reply-To: <20231212161255.3597-1-ssbssa@yahoo.de> (Hannes Domani's message of "Tue, 12 Dec 2023 17:12:55 +0100")
>>>>> "Hannes" == Hannes Domani <ssbssa@yahoo.de> writes:
Hannes> It's because all additional arguments get the TOO_FEW_PARAMS_BADNESS
Hannes> rank by rank_function, which disqualifies the function.
Hannes> To fix this, I've created the new VARARG_BADNESS rank, which is
Hannes> used only for additional arguments of variadic functions, allowing
Hannes> them to be called:
Is it possible for there to be two overloads like:
sum (int, int, ...)
sum (int, ...)
and then would a call to 'sum(5, 7)' or 'sum(5, "hello")' DTRT?
Tom
prev parent reply other threads:[~2023-12-12 20:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20231212161255.3597-1-ssbssa.ref@yahoo.de>
2023-12-12 16:12 ` Hannes Domani
2023-12-12 20:23 ` Tom Tromey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qbrb25w.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=ssbssa@yahoo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).