This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Invalid code in <limits>
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "rth at redhat dot com" <rth at redhat dot com>
- Date: Wed, 29 Jan 2003 08:45:26 -0800
- Subject: Re: Invalid code in <limits>
--On Wednesday, January 29, 2003 09:29:14 AM +0100 Gabriel Dos Reis
<gdr@integrable-solutions.net> wrote:
We alreay do the same thing for static_cast<>, dynamic_casst<>,
reinterpret_cast<> and such. There is no additional inherent complexity.
Well, I did write the code and I have spent a fair amount of time thinking
about it, and I beg to differ. :-)
You're suggesting treating bulitin functions as keywords, not as functions.
(That's your analogy with static_cast and sizeof. Those constructs are
not parsed as function calls at all.)
If we do that, things will work -- but then we might as well have
builtin *values* -- rather than builtin *functions*.
That's what I'm suggesting.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com