[Haskell-cafe] pointer equality

Eugene Kirpichov ekirpichov at gmail.com
Wed Jul 20 07:48:49 CEST 2011


reallyUnsafePointerEq#, and it really is as unsafe as it sounds :)



20.07.2011, в 7:51, "Nikhil A. Patil" <patil.nikhil at gmail.com> написал(а):

> Hi,
> 
> 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.
> 
>> main = print $ f == f
>>      where f = [1..10^9]
> 
> Thanks!!
> 
> nikhil
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list