This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Invalid code in <limits>
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Richard Henderson <rth at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: 29 Jan 2003 09:33:05 +0100
- Subject: Re: Invalid code in <limits>
- Organization: Integrable Solutions
- References: <29230000.1043827578@warlock.codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
| --On Wednesday, January 29, 2003 12:01:33 AM -0800 Richard Henderson
| <rth@redhat.com> wrote:
|
| >
| > Plus, I don't see how this helps. A name's a name, isn't it?
| > How does having a magic variable work out better than a magic
| > function? Seems like you still go through name lookup...
|
| Name lookup's not the problem -- you have to do that. It's evaluating
| function calls that's the problem.
That is no new problem. It just reuses existing treatment of things
like static_cast<>, dynamic_cast<> and such.
| You'll have to trust me on this one;
| trying to explain it would require so much standardese it would be silly.
Unfortunately, I have to disagree: this is really different than things
that the compiler already does. Let's put in a scalable framework,
not multiply special individual keywords.
-- Gaby