[m-dev.] For review: hash table implementation.

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Feb 9 06:06:41 AEDT 2001


On 08-Feb-2001, Ralph Becket <rbeck at microsoft.com> wrote:
> 
>     % This, again, is straight off the top of my head.
>     %
> generic_double_hash(T, Ha, Hb) :-
>     (      if dynamic_cast(T, Int) then
>         int_double_hash(Int, Ha, Hb)
>       else if dynamic_cast(T, String) then
>         string_double_hash(String, Ha, Hb)

Inconsistent intendation; the `if' should be
at the same level as the `else if'.

> :- func munge_factor_a = int.           munge_factor_a = 5.
> :- func munge_factor_b = int.           munge_factor_b = 3.

Please put clauses with the function name starting in column 1;
mtags assumes that.

Otherwise that looks fine.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list