Exemplo n.º 1
0
 protected static bool compareEqual(LithpPrimitive a, LithpPrimitive b)
 {
     if ((object)a == null || (object)b == null)
     {
         return((object)a == null && (object)b == null);
     }
     b = b.Cast(a.LithpType());
     return(a.compareEqual(b));
 }
Exemplo n.º 2
0
        protected override LithpPrimitive operatorBinaryXor(LithpPrimitive other)
        {
            LithpInteger iOther = (LithpInteger)other.Cast(LithpBlunt.LithpType.INTEGER);

            return(new LithpInteger(value ^ iOther.value));
        }