2019-09-24 21:05:38 +02:00
|
|
|
class Integer < Data4
|
|
|
|
def <(right)
|
|
|
|
X.comparison(:<)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class Word < Data8
|
|
|
|
def putstring
|
|
|
|
X.putstring
|
|
|
|
end
|
|
|
|
end
|
2018-08-18 19:06:15 +02:00
|
|
|
class Space
|
|
|
|
def if_small( n )
|
|
|
|
if( n < 10)
|
|
|
|
"small".putstring
|
|
|
|
return 10
|
|
|
|
else
|
|
|
|
return 20
|
|
|
|
end
|
|
|
|
end
|
|
|
|
def main(arg)
|
|
|
|
return if_small( 8 )
|
|
|
|
end
|
|
|
|
end
|