This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: New C++ Attribute: final
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Kevin Atkinson <kevina at gnu dot org>
- Cc: Mark Mielke <mark at mark dot mielke dot cc>, gcc at gcc dot gnu dot org
- Date: Mon, 01 Mar 2004 10:20:17 +0000
- Subject: Re: RFC: New C++ Attribute: final
- Organization: Codesourcery LLC
- References: <Pine.LNX.4.44.0402290149380.30657-100000@kevin-p3.atkinson.dhs.org>
Kevin Atkinson wrote:
Well yes I got the name from Java. But that doesn't mean that it can't be
useful is C++ also. Furthermore this attribute is mainly an
optimization so your program will still be correct without it.
In Java, the point of 'final' is to say 'not virtual', because all
non static member functions are implicitly virtual. In C++ there's no need.
The point of virtual functions is to allow old code to call new code,
your 'final' proposal subverts that behaviour.
what is its point?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk