PageRenderTime 39ms CodeModel.GetById 15ms RepoModel.GetById 0ms 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. printf: extern func
  2. exec: func (f: Func) {
  3. f()
  4. }
  5. exec(||
  6. printf("Exec works :)\n")
  7. )