aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-17 13:44:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-02-18 19:17:20 -0700
commit841add6890d001d315591dc20f7d464c264d88bb (patch)
treeb2680e04e8e16c1ff52a317830c51398cc79c0bf /src/codegen.zig
parentfaa44e2e5875036b105d8b7d38ccb2e93757a3c5 (diff)
downloadzig-841add6890d001d315591dc20f7d464c264d88bb.tar.gz
zig-841add6890d001d315591dc20f7d464c264d88bb.zip
AstGen: finish multi-object for loops
This strategy uses pointer arithmetic to iterate through the loop. This has a problem, however, which is tuples. AstGen does not know whether a given indexable is a tuple or can be iterated based on contiguous memory. Tuples unlike other indexables cannot be represented as a many-item pointer that is incremented as the loop counter. So, after this commit, I will modify AstGen back closer to how @vexu had it before, using a counter and array element access.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions