cvs commit: fptools/libraries/base/Foreign ForeignPtr.hs
Simon Marlow
simonmar@microsoft.com
Wed, 6 Nov 2002 16:59:30 -0000
> > - Fix the Eq instance for ForeignPtr to match the behaviour
> > specified by the spec. Two ForeignPtrs are equal iff their
> > underlying Ptrs are equal (previously they were equal iff they were
> > the same ForeignPtr).
> =20
> Hmmm, the Hugs implementation goes for 'same foreignptr' and, to me,
> that seems to make more sense.
>=20
> I wonder why the spec changed the semantics from that in the=20
> Hugs-GHC spec?
I don't have any strong opinions on the matter, I just changed it to
match the spec because someone complained.
Do you have an example where the previous behaviour is more useful?
Perhaps it should be brought up on the FFI list.
Cheers,
Simon