Patches

Pull Requests

History

If at all then we should be able to do all comparisons directly by __compare($other, $operator) where operator is one of {<,<=,==,!=,>,>=} or by another method __less() which performs a < test so that __less() and __equals() can be used to emulate all other tests.

[2004-04-14 22:58 UTC] jevon at jevon dot org

Would love this feature! Java implements this through:
class Object {
boolean equals(Object o);
}
So you could either make all user-defined objects include a simple equals() function [and similarly, identical()].
Or perhaps, develop the aforementioned magic __equals() [and __identical()] functions. (As well as __less())