compare() public method

public compare ( IoObject v ) : int
v IoObject
return int
示例#1
0
        public static IoObject slotGreaterThan(IoObject self, IoObject locals, IoObject message)
        {
            IoMessage m = message as IoMessage;
            IoObject  o = m.localsValueArgAt(locals, 0);

            return(self.compare(o) > 0 ? self.state.ioTrue : self.state.ioFalse);
        }
示例#2
0
        // Published Slots

        public static IoObject slotCompare(IoObject self, IoObject locals, IoObject message)
        {
            IoMessage m = message as IoMessage;
            IoObject  o = m.localsValueArgAt(locals, 0);

            return(IoNumber.newWithDouble(self.state, Convert.ToDouble(self.compare(o))));
        }
示例#3
0
文件: IoObject.cs 项目: devaspot/io
 public static IoObject slotNotEquals(IoObject self, IoObject locals, IoObject message)
 {
     IoMessage m = message as IoMessage;
     IoObject o = m.localsValueArgAt(locals, 0);
     return self.compare(o) != 0 ? self.state.ioTrue : self.state.ioFalse;
 }
示例#4
0
文件: IoObject.cs 项目: devaspot/io
 // Published Slots
 public static IoObject slotCompare(IoObject self, IoObject locals, IoObject message)
 {
     IoMessage m = message as IoMessage;
     IoObject o = m.localsValueArgAt(locals, 0);
     return IoNumber.newWithDouble(self.state, Convert.ToDouble(self.compare(o)));
 }