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

/samples/autoreturn/trivial.ooc

http://github.com/nddrylliog/oc
Unknown | 13 lines | 9 code | 4 blank | 0 comment | 0 complexity | 89c4bb88067920ba2223bb6d7e08eadd MD5 | raw file
 1
 2printf: extern func
 3
 4gen: func -> int {
 5  printf("Oh, I can see it coming\n")
 6  printf("There it goes\n")
 7  printf("Almost there\n")
 8  printf("That's it, now we have it\n")
 9  42
10}
11
12printf("Hey, the value is %d\n", gen())
13