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

/samples/closure/exec1.ooc

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