Gary Gregory wrote:
Hello:

The code:

new MutableInt(anInt).equals(Integer(anInt))
returns false for any int, which feels quite odd.

Should we fix this (for all mutables of course)?

No. As it violates the basic principles of the equals method as defined in Object.

new MutableInt(anInt).equals(new Integer(anInt)) !=
   new Integer(anInt).equals(new MutableInt(anInt))

You can add an isEqual() method if you like though.

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to