"Programming in D for C++ Programmers" mistake

Sean Eskapp eatingstaples at gmail.com
Thu Dec 2 17:13:45 PST 2010


There's a significant issue in the "Programming in D for C++ Programmers"
article (http://www.digitalmars.com/d/2.0/cpptod.html)

The Struct Comparison section is quite wrong. In C++, most structs/classes
automatically generate comparison operators. Also, these comparison operators
are member functions of the struct, not external functions.


More information about the Digitalmars-d mailing list