On Nov 4, 3:16 am, Robert Buck <[email protected]> wrote:
> Related to porting to C++, back when I helped port a large (8+ million
> line) code base to C++ we had tougher issues than what is faced within
> memcached, and the product was provably the better for it -- customers
> noticed the increased level of stability that resulted in addressing a
> host of latent bugs that C helped to hide. It is not terribly hard to
> port to C++, but it takes commitment from all parties involved. As for
> benefits, there were that ended up being resolved as a result. It was
> a painful few months, but even the die-hard C-fans appreciated the
> benefits.

I would also like to point out that memcached could easily remain a C-
within-C++ app which avoids all the C++ features while taking
advantage of the wider availability of conforming C++0x compilers than
C99 compilers.  There are no uses of 'class', and even the void*->T*
conversions can be trivially fixed with explicit C-style casts (and
one could argue that from a documentation perspective, this is A Good
Thing(TM)).  The only major C99 feature that might be missed is VLAs,
and I don't recall seeing any in the code.

Dave

Reply via email to