From: Tom Tromey <tom@tromey.com>
To: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
Cc: Tom Tromey <tom@tromey.com>, Simon Marchi <simon.marchi@polymtl.ca>
Subject: Re: [PATCH] gdb: allow specifying multiple filters when running selftests
Date: Thu, 13 Aug 2020 10:12:53 -0600 [thread overview]
Message-ID: <874kp6h6d6.fsf@tromey.com> (raw)
In-Reply-To: <122366de-1378-ca30-4e95-3bcd45120018@polymtl.ca> (Simon Marchi via Gdb-patches's message of "Thu, 13 Aug 2020 11:01:52 -0400")
>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
Simon> Hmm do you think it will happen often enough that we pass the
Simon> parsed arguments straight to a function taking an array view?
I am not sure it will happen often.
Simon> In any case, it's not difficult to do. Did you mean a simple
Simon> method like the patch below, or a conversion operator that could
Simon> be implemented like this, to be able to transparently pass a
Simon> gdb_argv as an array_view?
...
Simon> Personally I prefer things to be a bit more explicit, otherwise there's a bit too much hidden
Simon> magic.
Me too. I view implicit conversions as bad by default, needing special
justification to be used.
Tom
next prev parent reply other threads:[~2020-08-13 16:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-12 22:12 Simon Marchi
2020-08-13 1:46 ` Kevin Buettner
2020-08-13 12:06 ` Simon Marchi
2020-08-13 14:06 ` Tom Tromey
2020-08-13 15:01 ` Simon Marchi
2020-08-13 16:12 ` Tom Tromey [this message]
2020-08-13 22:24 ` [PATCH] gdb: add gdb_argv::as_array_view method Simon Marchi
2020-08-14 15:33 ` Tom Tromey
2020-08-14 16:33 ` Simon Marchi
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=874kp6h6d6.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/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