Re: equality and null pointers
- From: Jaakko Kangasharju <jkangash@xxxxxxx>
- Date: Fri, 13 Apr 2007 09:26:09 +0300
Lew <lew@xxxxxxxxxxxxxxxxxxxx> writes:
Why would one want NaN to equal NaN? Doesn't that violate the
fundamental meaning of NaN?
Apparently, at least when you want to use Doubles as hash table keys.
See
<http://java.sun.com/javase/6/docs/api/java/lang/Double.html#equals(java.lang.Object)>.
It also makes sense when you're, say, writing data marshaling and
unmarshaling code and need to test it.
--
Jaakko Kangasharju, Helsinki Institute for Information Technology
Want a Gmail account? Just email me.
.
- References:
- equality and null pointers
- From: julien . robinson2
- Re: equality and null pointers
- From: visionset
- Re: equality and null pointers
- From: Lew
- Re: equality and null pointers
- From: visionset
- Re: equality and null pointers
- From: Lew
- Re: equality and null pointers
- From: visionset
- Re: equality and null pointers
- From: Larry Barowski
- Re: equality and null pointers
- From: Lew
- equality and null pointers
- Prev by Date: instance of classes
- Next by Date: Not able to find the servlet
- Previous by thread: Re: equality and null pointers
- Next by thread: Re: equality and null pointers
- Index(es):
Relevant Pages
|