Beispiel #1
0
 public PushValue(T x)
 {
     mValue      = new CatMetaValue <T>(x);
     msName      = mValue.GetData().ToString();
     msValueType = CatKind.TypeNameFromObject(x);
     mpFxnType   = CatFxnType.Create("( -> " + msValueType + ")");
 }
Beispiel #2
0
        public override bool Equals(CatKind k)
        {
            if (k == this)
            {
                return(true);
            }
            if (!(k is CatMetaValue <T>))
            {
                return(false);
            }
            CatMetaValue <T> tmp = k as CatMetaValue <T>;

            return(tmp.GetData().Equals(mData));
        }