unsafePtrCompare, anybody?
Marcin 'Qrczak' Kowalczyk
qrczak@knm.org.pl
15 Sep 2001 20:04:14 GMT
Sat, 15 Sep 2001 15:11:02 -0400, Leon Smith <lps@po.cwru.edu> pisze:
> The point of all of this is that now string equality, when strings
> are made into atoms, is just pointer equality, which is available
> as IOExts.unsafePtrEq.
>
> However, in this situation, pointer comparison is simply an
> arbitrary total order on the set of all atoms, which is all we need
> to implement finite maps based on search trees.
The physical pointer order changes with garbage collection.
--
__("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK