/samples/autoreturn/trivial.ooc
http://github.com/nddrylliog/oc · Unknown · 13 lines · 9 code · 4 blank · 0 comment · 0 complexity · 89c4bb88067920ba2223bb6d7e08eadd MD5 · raw file
- printf: extern func
- gen: func -> int {
- printf("Oh, I can see it coming\n")
- printf("There it goes\n")
- printf("Almost there\n")
- printf("That's it, now we have it\n")
- 42
- }
- printf("Hey, the value is %d\n", gen())