예제 #1
0
파일: integer.py 프로젝트: halgari/cljvm
def int_add(self, other):
    assert equals(core.type(other), _tp_integer)
    return W_Integer(self.int() + other.int())
예제 #2
0
파일: integer.py 프로젝트: halgari/cljvm
def int_equals(self, other):
    if not core.type(other) == _tp_integer:
        return w_false
    if self.int() == other.int():
        return w_true
    return w_false