Personal tools

Talk:Physical equality

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
Current revision (19:20, 20 December 2010) (edit) (undo)
 
(2 intermediate revisions not shown.)
Line 2: Line 2:
--[[User:Lemmih|Lemmih]] 15:00, 29 July 2006 (UTC)
--[[User:Lemmih|Lemmih]] 15:00, 29 July 2006 (UTC)
 +
 +
 +
No need to talk about OCaml's nan:
 +
Prelude> 0/0
 +
NaN
 +
Prelude> 0/0 == 0/0
 +
False

Current revision

GHC already has physical equality testing via GHC.Exts.reallyUnsafePtrEquality#

--Lemmih 15:00, 29 July 2006 (UTC)


No need to talk about OCaml's nan: Prelude> 0/0 NaN Prelude> 0/0 == 0/0 False