summaryrefslogtreecommitdiff
path: root/sample/t2.rb
blob: 7f5b9df480ea4a0652d2cff74d21666c81ffd7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#print("in Print\n")
def t2() end

def println(*args)
  for a in args
    t2()
    print(a)
  end
  print("\n")
end def

def tt
  for i in 1..10
    println("i:", i);
    yield(i);
  end
end

test = 
do tt() using i
  if i == 3; break end
  println("ttt: ", i);
end
#exit()