dsimcha: > Similar stuff could be done for a generic opCmp that gives a > struct an arbitrary total ordering as long as all of its members have a total > ordering.
I have a similar structCmp in my dlibs, it's used by the Record/record (similar to the Tuple/tuple of Phobos2). It works recursively. I'd like all D structs to have such richer semantics (opCmp, opHash, opEquals, a good printing), so Tuple can be removed from the std lib. Bye, bearophile
