Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (18 sloc) 0.256 kb
3003f87 云风 first commit
authored
1 trace = require "trace"
2
3 local function factorial(n)
4 if n <= 1 then
5 return 1
6 end
7 return factorial(n-1) * n
8 end
9
e2d36ce 云风 reset trace.on
authored
10 function foo(n)
11 trace.trace("n s",n)
3003f87 云风 first commit
authored
12 local s = factorial(100)
13 return s
14 end
15
e2d36ce 云风 reset trace.on
authored
16 function hello()
17 print "hello"
18 end
19
20 foo(3)
21 hello()
3003f87 云风 first commit
authored
22 foo()
e2d36ce 云风 reset trace.on
authored
23
Something went wrong with that request. Please try again.