block version of loop
no debugging, just worked! only about 10% slower, nice also recording qemu-linux times, which are a lot faster(and double bonus, save the startup/syncing)
This commit is contained in:
15
test/mains/source/times_11111_5.rb
Normal file
15
test/mains/source/times_11111_5.rb
Normal file
@ -0,0 +1,15 @@
|
||||
class Space
|
||||
def times(n)
|
||||
i = 0
|
||||
while( i < n )
|
||||
yield
|
||||
i = i + 1
|
||||
end
|
||||
return n
|
||||
end
|
||||
def main(arg)
|
||||
return times(5) {
|
||||
"1".putstring
|
||||
}
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user