internal ValueExp( Datatype dt, object value )
     : base(dt.GetHashCode()*dt.ValueHashCode(value)*HASH_VALUE, false)
 {
     // TODO: probably the epsilon reducibility is wrong.
     // can we treat epsilon-reducibility as an approximation?
     // rather than the precise value?
     this.dt = dt;
     this.value = value;
 }
예제 #2
0
 internal ValueExp(Datatype dt, object value)
     : base(dt.GetHashCode() * dt.ValueHashCode(value) * HASH_VALUE, false)
 {
     // TODO: probably the epsilon reducibility is wrong.
     // can we treat epsilon-reducibility as an approximation?
     // rather than the precise value?
     this.dt    = dt;
     this.value = value;
 }
        public override int ValueHashCode(object o)
        {
            int x = 0;

            foreach (object v in (object[])o)
            {
                x ^= itemType.ValueHashCode(v);
            }
            return(x);
        }