Re: equals and hashCode



> Agreed, but create an empty hashCode() method when you create the equals()
> method, or you're likely to forget...

Yes, I employ this technique for languages that require manual freeing of
objects as well as opening/closing recordsets. Works every time and sure
beats searching the code looking for memory leaks cause by constructed
objects that weren't freed.

--
Tom Dyess
OraclePower.com


.



Relevant Pages

  • Re: equal
    ... x plus y equals two ... is not a verb, ... languages, + is and operator, which is rather verb like. ... not mathematics. ...
    (alt.usage.english)
  • Re: [repost]Eorros for me, in the assembly history
    ... > This isn't an assembler issue because the technique is useful in any ... > number of languages, RosAsm included ... There is nothing new with a Routine calling to itself. ...
    (alt.lang.asm)
  • Re: New Methodology on Analysis of Language Change
    ... Apparently word order was only one of the 125 features that were programmed ... as they do in languages such as German ... >> not their vocabularies, a new report suggests. ... >> the journal Science indicate that a linguistic technique that borrows some ...
    (sci.lang)
  • Re: Real World Applications
    ... Most of languages listed on Wikipedia page are useless from the point ... I have found that this is an issue even with Prolog. ... conservative businesses want to stick with the mainstream. ... popular technique for creating rich domain models in applications that ...
    (comp.lang.prolog)
  • Re: Whats the best way to handle this floating point problem?
    ... Mitja Trampus wrote: ... Firefox 1.5.0.4. ... I expect this is also the case with other languages you've tried. ... not equals ...
    (comp.lang.javascript)

Loading