diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-17 13:44:35 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 19:17:20 -0700 |
| commit | 841add6890d001d315591dc20f7d464c264d88bb (patch) | |
| tree | b2680e04e8e16c1ff52a317830c51398cc79c0bf /src/codegen.zig | |
| parent | faa44e2e5875036b105d8b7d38ccb2e93757a3c5 (diff) | |
| download | zig-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
