Linked by anonymous on Tue 29th Mar 2011 16:05 UTC
General Development The C++ programming language is about to be updated, as the ISO steering committee for the language has approved the final draft specifying its next version. The ISO/IEC Information Technology Task Force will review the steering committee's Final Draft International Standard will review and, barring any complications, publish the draft later this year. It will be known as C++ 2011.
Thread beginning with comment 468309
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Features
by phreck on Wed 30th Mar 2011 08:48 UTC in reply to "Features"
phreck
Member since:
2009-08-13

The new auto is even better than C#'s var in that it allows multiple declarations. That can be very handy depending on code-style:

auto inprecise_pi = 3.14159,
inprecise_pi2 = 2 * inprecise_pi,
inprecise_sqrt_pi = sqrt (inprecise_pi);

whereas in C# you are forced to:

var inprecise_pi = 3.14159;
var inprecise_pi2 = 2 * inprecise_pi;
var inprecise_sqrt_pi = sqrt (inprecise_pi);

Reply Parent Score: 2

RE[2]: Features
by transputer_guy on Wed 30th Mar 2011 16:23 in reply to "RE: Features"
transputer_guy Member since:
2005-07-08

us_pi = 3,

According to Huffington Post there is legislation pending from Martha Roby (R-Ala.) to declare Pi as 3. This seems to have widespread support of Republicans, what more can one say!

Reply Parent Score: 3

RE[3]: Features
by jim9000 on Wed 30th Mar 2011 17:22 in reply to "RE[2]: Features"
jim9000 Member since:
2011-03-30

http://roby.house.gov/press-release/%E2%80%9Cpi%E2~...

"The “Pi” story is a hoax and is untrue. It was written by a liberal blogger in the comedy section of the Huffington Post. No such bill exists, as evidenced by a quick check of http://thomas.loc.gov/. Thank you for not falling for the joke (even though it is humorous)."

Reply Parent Score: 2