On Tue, 1 Apr 2003, Miko O'Sullivan wrote: > =:= is a "generic" comparison operator that simply calls the > value_for_comparison method of the objects on left and right. If they > both return the same string, then the expression returns true, else it ^^^^^^ > returns false. If they don't have that method, that's a fatal error. > Their value_for_comparison() methods must have been defined in the same > class, otherwise you're comparing apples and oranges. (Yes, I'm sure we > can think of a better name than "value_for_comparison".)
I propose the name "str" for the value_for_comparison method, and "eq" for the generic comparison operator. That's how my objects will work, anyway. ~ John Williams