Walter Bright wrote: > Rainer Deyke wrote: >> The reason I have stuck with C++ despite its (massive, obvious) flaws is >> that it has a couple of really nice and useful features that very few >> other languages have even attempted to match. D is the only language I >> know that even tries, although it still falls short in many areas. > > Fair enough. What are those two features?
1. C++'s object model, complete with polymorphic value types, deterministic destructors, arbitrary copy constructors, and optional lack of default constructor. D's structs come close, but I think the class/struct split hurts D more than it helps. And, yes, C++ has a lot of room for improvement here. 2. Templates. And this is one area that D improves in a major way. I love static if. -- Rainer Deyke - rain...@eldwood.com