On Fri, Jun 10, 2011 at 18:10, Nebojša Ćirić <[email protected]> wrote: > > > 10. јун 2011. 00.25, <[email protected]> је написао/ла: >> >> This version of NaN handling is not going to work since NaN is not equal >> to >> anything. The rest of the V8 usage looks fine. > > It seemed that NaN can take only 2 values in v8 world - > see http://code.google.com/p/v8/issues/detail?id=1101
We don't make any promises, but yes, currently we only ever create a SNaN with zero payload, possibly signed (simply because negation on doubles doesn't check for NaN). Don't rely on it unless there is a good reason, though. It's not guaranteed to stay that way. And if you use is_nan (which you must, because NaN != NaN, even if it's the same NaN representation), it won't matter. /L -- Lasse R.H. Nielsen [email protected] -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
