axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] aldor/axiom interoperability


From: Waldek Hebisch
Subject: Re: [Axiom-developer] aldor/axiom interoperability
Date: Fri, 14 Mar 2008 19:10:24 +0100 (CET)

Bill Page wrote:
> Here it is:
> 
> Index: src/interp/hashcode.boot
> ===================================================================
> --- src/interp/hashcode.boot  (Revision 183)
> +++ src/interp/hashcode.boot  (Arbeitskopie)
> @@ -55,7 +55,7 @@
>                          hash := hashCombine(hashType(arg, percentHash), hash)
>                  retCode := hashType(retType, percentHash)
>                  EQL(retCode, $VoidHash) => hash
> -                hashCombine(retCode, hash)
> +                hashCombine(retCode, hashCombine(32236, hash))
>          op = 'Enumeration =>
>                  for arg in args repeat
>                          hash := hashCombine(hashString(STRING arg), hash)
> 
> Don't ask me what it does, however :-)
> 

What is does is clear -- this code computes a hash.  However,
the real question is different.  Namely, to cooperate Axiom
and Aldor need to compute this hash in the same way.  So the
question is which versions of Aldor use the formula above?
Did Axiom always use wrong formula or is this a change in
Aldor?

-- 
                              Waldek Hebisch
address@hidden 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]