[SAGA-RG] equals

Steve Fisher dr.s.m.fisher at gmail.com
Wed Aug 5 11:45:03 CDT 2009


Hi,

I see that the errata now indicate that the UUID is to be different on
a cloned object. The spec says nothing about the "equals" operation.
In the Java world it is normal that if one object is a clone of
another that "equals" is true. This means that when you write clone,
you normally do equals and hashCode as well. Now hashCaode is very
Java specific however C++ has operator== which can be defined. In Java
you always have an equals operation but the default implementation is
almost useless. Should the spec say anything about this - and what
have the various implementations done?

Steve


More information about the saga-rg mailing list