More pointer-equality weirdness
Conal Elliott
conal at microsoft.com
Wed Apr 24 10:22:53 EDT 2002
Yes, and that foo || True == False for some value of foo, which I find
pretty weird. I would not surprised if (1 `unsafePtrEq` 1) == False,
especially given the two distinct implicit calls to fromInteger, etc,
but the answer seems to be neither true nor false. - Conal
-----Original Message-----
From: Alastair Reid [mailto:reid at cs.utah.edu]
Sent: Wednesday, April 24, 2002 4:55 AM
To: Simon Peyton-Jones
Cc: Conal Elliott; Ghc-Bugs
Subject: Re: More pointer-equality weirdness
Simon:
> So pointer equality may change over time.
> That's what you get for pointer-equality.
I think the point of Conal's mail was that ghci prints just one answer
then halts (crashes?) whereas ghc prints two.
--
Alastair
More information about the Glasgow-haskell-bugs
mailing list