[Haskell-cafe] pointer equality

Brandon Allbery allbery.b at gmail.com
Wed Jul 20 06:52:35 CEST 2011


On Tue, Jul 19, 2011 at 23:51, Nikhil A. Patil <patil.nikhil at gmail.com>wrote:

> Is there any way of getting the following code to immediately return
> True without performing the element-by-element comparison? Essentially
> this boils down to checking whether pointers are equal before
> comparing the contents.
>

Let's pt it this way:  there's a hidden primitive called
"reallyUnsafePointerEquality".  It's named that for a reason.

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110720/822c56b2/attachment.htm>


More information about the Haskell-Cafe mailing list