aboutsummaryrefslogtreecommitdiff
path: root/examples/ptrs.fwd
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-12-29 00:07:16 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2026-01-06 17:19:52 +0200
commitc7b41b47d038fd4973da05224b7aa29efaae1784 (patch)
treead439ff996aa5121bced46bdb7e42eb419702be0 /examples/ptrs.fwd
parentd501b2c9ebab6f5b90c808ea0e5fde912818707d (diff)
downloadfwd-c7b41b47d038fd4973da05224b7aa29efaae1784.tar.gz
fwd-c7b41b47d038fd4973da05224b7aa29efaae1784.zip
work towards a simple integer vector implementation
+ Hopefully shows that useful programs can be implemented with the rules present + Still missing at least external functions with non-void returns
Diffstat (limited to 'examples/ptrs.fwd')
-rw-r--r--examples/ptrs.fwd7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/ptrs.fwd b/examples/ptrs.fwd
index a0f8aac..a1efc84 100644
--- a/examples/ptrs.fwd
+++ b/examples/ptrs.fwd
@@ -1,7 +1,6 @@
-fwd_null(auto x, () null, (&auto) ok);
-fwd_copy(auto x, (auto, auto) ok);
-fwd_println(auto x);
-fwd_intalloc((*int) ok);
+extern fwd_copy(auto x, (auto, auto) ok);
+extern fwd_println(auto x);
+extern fwd_intalloc((*int) ok);
main()
{