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)
|
|
|
|
return 10
|
|
|
|
else
|
|
|
|
"large".putstring
|
|
|
|
return 20
|
|
|
|
end
|
|
|
|
end
|
|
|
|
def main(arg)
|
|
|
|
return if_small( 12 )
|
|
|
|
end
|
|
|
|
end
|