PageRenderTime 71ms CodeModel.GetById 36ms app.highlight 1ms RepoModel.GetById 33ms app.codeStats 0ms

/samples/closure/exec2.ooc

http://github.com/nddrylliog/oc
Unknown | 10 lines | 7 code | 3 blank | 0 comment | 0 complexity | 138234c2c74e9c2de2d70244e74ed147 MD5 | raw file
 1
 2printf: extern func
 3
 4exec: func (f: Func) {
 5    f()
 6}
 7
 8exec(||
 9  printf("Exec works :)\n")
10)