This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++0x PATCH] Remove auto as a storage class specifier


On 2/28/08, Andrew Pinski <pinskia@gmail.com> wrote:
> On Thu, Feb 28, 2008 at 2:20 PM, Doug Gregor <doug.gregor@gmail.com> wrote:
> > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2337.pdf
> >
> > Basically, the use of "auto" as a storage specifier is pretty rare,
> > and conflicts with the new meaning of "auto" in C++0x.
>
> So what if it is rare, it is breaking backwards compatibility even
> more.  They should have used a new keyword instead but then again
> they know best, at least we hope they do.

Adding a new keyword would in all probability have introduced a
greater incompatibility than changing the meaning of auto because
programmers weren't using that word.  I did a code search for auto,
and found 2/3 of all uses to be in compiler conformance tests.

-- 
Lawrence Crowl


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]