From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: Daniel Berlin <dberlin@dberlin.org>,
Kevin Atkinson <kevina@gnu.org>,
Mark Mielke <mark@mark.mielke.cc>, <gcc@gcc.gnu.org>,
Jeff Sturm <jsturm@one-point.com>,
Nathan Sidwell <nathan@codesourcery.com>
Subject: Re: RFC: New C++ Attribute: final
Date: Wed, 03 Mar 2004 19:04:00 -0000 [thread overview]
Message-ID: <m3r7w9u5fb.fsf@uniton.integrable-solutions.net> (raw)
In-Reply-To: <orllmilh6f.fsf@livre.redhat.lsd.ic.unicamp.br>
Alexandre Oliva <aoliva@redhat.com> writes:
| On Mar 2, 2004, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
|
| > Alexandre Oliva <aoliva@redhat.com> writes:
|
| > | Sure, but that's besides the point. In the case at hand, the object
| > | *may* have a derived type that overrides the member function, but the
| > | other member function actually wanted the non-overridden function to
| > | be called.
|
| > Like a local class? ;-)
|
| Err... I don't think so. Consider:
|
| struct base {
| typedef /* whatever */ iterator;
| iterator begin();
| iterator end();
| virtual void f(iterator);
| };
| struct foo : base {
| void f(iterator) { do_something(); }
| void g() {
| call_func_for_each(this,
| & __extension__ __attribute__((__final__))
| foo::f,
The issue is actually type rooted. Given C++ separate compilation,
you would need a way to make the callee agree on the type of that
expression so that it expands to the "right" function, or else you get
th wrong result. Someone was worrying about safety, I don't think
this one is making us move towards that direction.
-- Gaby
next prev parent reply other threads:[~2004-03-03 19:04 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-29 5:50 Kevin Atkinson
2004-02-29 6:51 ` Mark Mielke
2004-02-29 6:56 ` Kevin Atkinson
2004-03-01 10:20 ` Nathan Sidwell
2004-03-01 13:51 ` Per Abrahamsen
2004-03-01 20:58 ` Kevin Atkinson
2004-03-01 23:05 ` Robert Dewar
2004-03-01 14:51 ` Jeff Sturm
2004-03-01 15:02 ` Gabriel Dos Reis
2004-03-01 15:04 ` Nathan Sidwell
2004-03-01 18:53 ` Joe Buck
2004-03-02 10:01 ` Nathan Sidwell
2004-03-01 19:39 ` Jeff Sturm
2004-03-01 19:57 ` Gabriel Dos Reis
2004-03-01 20:18 ` Joe Buck
2004-03-01 20:57 ` Gabriel Dos Reis
2004-03-01 21:22 ` Joe Buck
2004-03-01 21:40 ` Gabriel Dos Reis
2004-03-02 16:59 ` Alexandre Oliva
2004-03-02 17:33 ` Gabriel Dos Reis
2004-03-02 22:54 ` Alexandre Oliva
2004-03-02 23:24 ` Daniel Berlin
2004-03-03 0:09 ` Richard Henderson
2004-03-03 0:23 ` Dale Johannesen
2004-03-03 0:33 ` Richard Henderson
2004-03-03 0:39 ` Dale Johannesen
2004-03-03 0:27 ` Alexandre Oliva
2004-03-03 0:57 ` Gabriel Dos Reis
2004-03-03 3:53 ` Alexandre Oliva
2004-03-03 11:08 ` Gabriel Dos Reis
2004-03-03 16:49 ` Alexandre Oliva
2004-03-03 17:34 ` Gabriel Dos Reis
2004-03-03 18:12 ` Joe Buck
2004-03-03 19:04 ` Gabriel Dos Reis [this message]
2004-03-03 0:52 ` Gabriel Dos Reis
2004-03-03 1:51 ` Joe Buck
2004-03-03 11:37 ` Gabriel Dos Reis
2004-03-01 18:45 ` Joe Buck
2004-03-01 18:56 ` Gabriel Dos Reis
2004-03-01 19:11 ` Joe Buck
2004-03-01 19:48 ` Gabriel Dos Reis
2004-03-01 20:09 ` Joe Buck
2004-03-01 20:37 ` Gabriel Dos Reis
2004-03-01 18:34 ` Joe Buck
2004-02-29 7:18 ` Phil Edwards
2004-03-01 6:15 ` Kevin Atkinson
2004-03-01 8:04 ` Kevin Atkinson
2004-03-02 20:58 ` Matt Austern
2004-03-02 21:24 ` George Garvey
2004-03-03 1:21 ` Gabriel Dos Reis
2004-03-02 23:10 ` Joe Buck
2004-03-03 0:30 ` Alexandre Oliva
2004-03-01 19:03 Cheng, Cheuk
2004-03-01 19:34 Chris Lattner
2004-03-03 0:33 Robert Dewar
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=m3r7w9u5fb.fsf@uniton.integrable-solutions.net \
--to=gdr@integrable-solutions.net \
--cc=aoliva@redhat.com \
--cc=dberlin@dberlin.org \
--cc=gcc@gcc.gnu.org \
--cc=jsturm@one-point.com \
--cc=kevina@gnu.org \
--cc=mark@mark.mielke.cc \
--cc=nathan@codesourcery.com \
/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).