Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: The reuse o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 15 Topic 9542 of 9775
Post > Topic >>

Re: The reuse of keywords in the C++ standard

by "Bob" <nospam@[EMAIL PROTECTED] > Apr 25, 2008 at 03:47 AM

Moschops wrote:
> 
> I note with some dismay the proposal to create a new meaning for the
> C and C++ keyword 'auto', as described in the document N1984 (part of
> the proposals for C++0X or whatever it's called now). Efforts are
> being taken to
> 
> ensure it doesn't conflict with the previous meaning of the keyword,
> but why
> 
> not simply have a whole new keyword? These guys aren't stupid, so I
> assume there must be a good reason.
> 

A few things will be in play;

1)   A new keyword has a way of breaking old code that happens to have
used that new keyword as a name of a variable/type/etc.  One of the
design philosophies of C++ has been maintaining backward compatibility
and sup****t of existing code unless there is a significant reason not
to.

2)   If an existing keyword has a name that is applicable to the new
meaning, the introduction of another keyword to sup****t that meaning,
is either redundant or likely to cause confusion for users of the
language.

3)   The auto keyword is very rarely used in practice (in places where
it can be used, it is a default attribute anyway), and scenarios
where the proposed new usage would conflict with the old will be
rare:  the analysis to prevent conflict with the previous meaning will
not be prohibitive.


-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 15 Posts in Topic:
The reuse of keywords in the C++ standard
"Moschops" <  2008-04-24 15:14:37 
Re: The reuse of keywords in the C++ standard
red floyd <no.spam@[EM  2008-04-25 03:44:16 
Re: The reuse of keywords in the C++ standard
"Bob" <nospa  2008-04-25 03:47:59 
Re: The reuse of keywords in the C++ standard
Peter Jones <dev-null@  2008-04-25 04:13:19 
Re: The reuse of keywords in the C++ standard
"Ivan Vecerina"  2008-04-25 04:13:19 
Re: The reuse of keywords in the C++ standard
Marco Manfredini <ok_n  2008-04-25 10:14:56 
Re: The reuse of keywords in the C++ standard
Brendan <catphive@[EMA  2008-04-25 10:15:41 
Re: The reuse of keywords in the C++ standard
Alberto Ganesh Barbati &l  2008-04-25 10:49:46 
Re: The reuse of keywords in the C++ standard
"Moschops" <  2008-04-25 10:47:58 
Re: The reuse of keywords in the C++ standard
Pete Becker <pete@[EMA  2008-04-25 11:13:19 
Re: The reuse of keywords in the C++ standard
Ron Natalie <ron@[EMAI  2008-04-25 15:39:59 
Re: The reuse of keywords in the C++ standard
Andre Kaufmann <akfmne  2008-04-25 16:16:26 
Re: The reuse of keywords in the C++ standard
nickf3 <nickf3@[EMAIL   2008-04-25 16:13:19 
Re: The reuse of keywords in the C++ standard
catphive <catphive@[EM  2008-04-26 03:33:13 
Re: The reuse of keywords in the C++ standard
marlow.andrew@[EMAIL PROT  2008-04-26 08:41:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:25:13 CDT 2008.