diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-12-06 20:00:42 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-12-06 20:00:42 +0200 |
commit | 0cef986e6958a0a6a7e94e8256b0039709aed56b (patch) | |
tree | 54d161ff8c2028a2b7819d11b1d74f6b99d01ca3 /examples/fib.fwd | |
parent | 1466d2d1032db1e08a4105312f000a1c284d2889 (diff) | |
download | fwd-0cef986e6958a0a6a7e94e8256b0039709aed56b.tar.gz fwd-0cef986e6958a0a6a7e94e8256b0039709aed56b.zip |
add trailing closures
+ Useful for guard statements, not entirely sure about the final syntax
but at least they're possible
Diffstat (limited to 'examples/fib.fwd')
-rw-r--r-- | examples/fib.fwd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/fib.fwd b/examples/fib.fwd index 44ced4a..be2b63f 100644 --- a/examples/fib.fwd +++ b/examples/fib.fwd @@ -14,6 +14,9 @@ fib(int n, (int) res) } } +/* 'extern' println */ +fwd_println(int n); + main() { fib(6) => int n; |