Lambda expressions voted into C++0x

This post by Herb Sutter on his blog says it all.

C++0x is really shaping up with lots of new interesting features ;)

About Herb's teaser in his post. I wonder if he used gcc for his tests... That would be fun. And still, not that inconceivable ;)

The use of the lambda expressions to pass code around to another thread is really interesting. I really like the active object pattern, but this is surely a great way of distributing work around.

Posted at at 3:32 PM on Sunday, March 30, 2008 by Posted by Rui Pires | 0 comments   | Filed under:

Bjarne Stroustrup interview on Dr Dobbs

I would like to share this interview to Bjarne on Dr Dobbs with you.
It is worth reading, at least for the part about what will be going into C++0x and what will be deferred to the next language revision.

Quoting Bjarne:

  • Libraries
    • Threads
    • Regular expressions
    • Hash tables
    • Smart pointers
    • Many improvements for containers
    • Quite a bit support for new libraries
  • Language
    • A memory model supporting modern machine architectures
    • Thread local storage
    • Atomic types
    • Rvalue references
    • Static assertions
    • Template aliases
    • Variadic templates
    • Strongly typed enums
    • constexpr: Generalized constant expressions
    • Control of alignment
    • Delegating constructors
    • Inheriting constructors
    • auto: Deducing variable types from initializers
    • Control of defaults
    • nullptr: A name for the null pointer
    • initializer lists and uniform initialization syntax and semantics
    • concepts (a type system for template arguments)
    • a range-based for loop
    • raw string literals
    • UTF8 literals
    • Lambda functions

I can't wait to use C++0x!

Posted at at 2:14 PM on Friday, March 28, 2008 by Posted by Rui Pires | 0 comments   | Filed under: