From -5264614727747818168 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,74637d148a591f02 X-Google-Attributes: gidf78e5,public X-Google-ArrivalTime: 2001-03-27 14:41:01 PST Path: supernews.google.com!sn-xit-02!supernews.com!feed1.uncensored-news.com!news.alt.net!comp-std-cpp-robomod!not-for-mail From: "Anthony Williams" Newsgroups: comp.std.c++ Subject: Re: Proposal: two real uses for the "auto" keyword Date: Tue, 27 Mar 2001 16:37:46 CST Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 35 Approved: Fergus Henderson , moderator of comp.std.c++ Message-ID: <99pg61$219b1$1@ID-49767.news.dfncis.de> References: <052201c0b4ab$603e8050$0500a8c0@dragonsys.com> <99l3nf$7n0$1@news-int.gatech.edu> <+zJqQ9Afowv6Ews1@ntlworld.com> <3ABF4E68.14646D4E@acm.org> Return-Path: X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) X-Orig-NNTP-Posting-Host: 47.160.2.96 X-Orig-X-Trace: fu-berlin.de 985678849 2139489 47.160.2.96 (16 [49767]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: supernews.google.com comp.std.c++:4036 "James Dennett" wrote in message news:3ABF4E68.14646D4E@acm.org... > Francis Glassborow wrote: > > > > In article <99l3nf$7n0$1@news-int.gatech.edu>, Brian McNamara! > > writes > > >(As an aside, I am curious why function declarations are even allowed > > >inside functions.) > > > > Almost certainly for compatibility with C. > > Would it be sensible to consider deprecating this feature, > or removing it altogether? It seems to give no significant > benefit, and plenty of pain. > I would like to see it extended to allow proper nested functions, and (whilst I'm at it) for local classes to have linkage so they can be used with templates. Anthony -- Anthony Williams Software Engineer, Nortel Networks Optoelectronics The opinions expressed in this message are not necessarily those of my employer --- [ comp.std.c++ is moderated. To submit articles, try just posting with ] [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.research.att.com/~austern/csc/faq.html ]