This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/4] Change the as_*_interp functions to use dynamic_cast
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Fri, 25 May 2018 19:02:32 +0100
- Subject: Re: [RFA 2/4] Change the as_*_interp functions to use dynamic_cast
- References: <20180430051207.19979-1-tom@tromey.com> <20180430051207.19979-3-tom@tromey.com>
On 04/30/2018 06:12 AM, Tom Tromey wrote:
> This changes the various as_*_interp functions to be implemented using
> dynamic_cast. I believe this is a small improvement, because it is
> more typesafe -- the C++ runtime does the type-checking for us.
OK.
Thanks,
Pedro Alves