diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-17 13:31:19 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-17 13:31:19 -0400 |
| commit | b025193de5b951734e5108e4762e5dc40359431b (patch) | |
| tree | 4b29d27c03bbf6604964276ad01d35aab010540e /std/buffer.zig | |
| parent | 9564c05cd5641095d48baf982a372f00bdf02659 (diff) | |
| download | zig-b025193de5b951734e5108e4762e5dc40359431b.tar.gz zig-b025193de5b951734e5108e4762e5dc40359431b.zip | |
inferred comptime values rather than elided scopes
because of this example:
```zig
export fn entry(b: bool) usize {
var runtime = [1]i32{3};
comptime var i: usize = 0;
inline while (i < 2) : (i += 1) {
const result = if (i == 0) [1]i32{2} else runtime;
}
comptime {
return i;
}
}
```
The problem is that the concept of "resetting" a result location,
introduced in the previous commit, cannot handle elision scopes.
This concept is inherently broken with inline loops.
Diffstat (limited to 'std/buffer.zig')
0 files changed, 0 insertions, 0 deletions
