From 0cef986e6958a0a6a7e94e8256b0039709aed56b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 6 Dec 2024 20:00:42 +0200 Subject: add trailing closures + Useful for guard statements, not entirely sure about the final syntax but at least they're possible --- examples/fib.fwd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/fib.fwd') 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; -- cgit v1.2.3