unsafePtrCompare, anybody?

Carl R. Witty cwitty@newtonlabs.com
17 Sep 2001 14:11:22 -0700


Leon Smith <lps@po.cwru.edu> writes:

> 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.  And of course, pointer comparisons are a much cheaper 
> operation that actual string comparison.

You could just add an extra Int sequence number to your Atoms, and
compare using that.

Carl Witty