If you want to learn OOP, or just plain and simple coding, I'd have to pick ldmud. LPC is much higher level than C, and teaches you OOP without the massive extra baggage that comes with C++. Some of its nicer features include automatic array and mapping allocation/expansion and garbage collecting. I also have never seen a C++ string implementation that matches the ease-of-use of the built-in LPC string type (and I've seen many).
Oh yes, almost forgot automatic initialization of variables upon declaration, and the ability to declare variables at the beginning of any block just like C++ (You'd be surprised how much this can increase code readability).
|