diff options
| author | 2026-10-15 22:28:06 +0330 | |
|---|---|---|
| committer | 2026-10-15 22:28:06 +0330 | |
| commit | 5a4dc62a79af6135c7050e81a82dbfdfb0a7d4e0 (patch) | |
| tree | 805283b2d30b2cf0f53af42e5a3fc119af5e839f /examples | |
| parent | definite assignment: reading a local before it is initialized is a compile er... (diff) | |
uninit: track aggregate fills per part, sticky computed-index fills, &a[k] and method calls set the aggregate; fix test/example hits; docs
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/bf.zc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bf.zc b/examples/bf.zc index b3d3a41..5683482 100644 --- a/examples/bf.zc +++ b/examples/bf.zc @@ -14,7 +14,7 @@ int run(s, int i, int c) { int k = 0; while (s[i + k] == c) k++; return k; } fn translate(s) { int i = 0, k; n = 0; depth = 0; - emit("let t[30000], p = 0;\n"); + emit("let t[30000] = {}, p = 0;\n"); while (s[i]) { switch (s[i]) { case '+', '-': |
