This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: New C++ Attribute: final
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Nathan Sidwell <nathan at codesourcery dot com>, Kevin Atkinson <kevina at gnu dot org>, Mark Mielke <mark at mark dot mielke dot cc>, <gcc at gcc dot gnu dot org>
- Date: 01 Mar 2004 20:48:08 +0100
- Subject: Re: RFC: New C++ Attribute: final
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0403011020550.11117-100000@ops2.one-point.com>
Jeff Sturm <jsturm@one-point.com> writes:
| > From a programmer's perspective, why is it desirable to remove the
| > virtuality?
|
| For C++, I can't think of a good reason besides performance. In Java, I
| think 'final' is essential to the security framework.
There is no doubt that people will construct examples where they
think they need final for C++. Similarly, there is no doubt people
will come up with techniques and arguments why that need is a
"ill-design" artefact. Which is what has been happening since ages.
If you argue your case by saying that one approach is ideological,
you would have trouble arguiing convincingly why the other is not.
-- Gaby