PageRenderTime 4ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/closure/closure2.ooc

http://github.com/nddrylliog/oc
Unknown | 9 lines | 6 code | 3 blank | 0 comment | 0 complexity | faaddda66af29b87e3ca3d740e19acd4 MD5 | raw file
1
2printf: extern func
3
4gen: func -> Func -> int {
5  func -> int { 42 }
6}
7
8f1 := gen(42)
9printf("%d\n", f1())