[m-dev.] Re: pragma fact_table
Zoltan Somogyi
zs at cs.mu.oz.au
Wed Feb 26 17:01:50 AEDT 1997
Before /home/staff running out space truncated my mail, I wrote:
> > +% Create a non-negative integer hash value for a float.
> > +
> > +:- pred float__hash(float, int).
> > +:- mode float__hash(in, out) is det.
>
> Delete "non-negative".
> If the user wants a non-negative hash value, they can use int__abs.
I think David's approach is significantly less error prone, and
I don't know of any situation in which negative hash values are useful.
We should go with David's original approach.
Zoltan.
More information about the developers
mailing list