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