aboutsummaryrefslogtreecommitdiff
path: root/std/buffer.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-17 13:31:19 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-17 13:31:19 -0400
commitb025193de5b951734e5108e4762e5dc40359431b (patch)
tree4b29d27c03bbf6604964276ad01d35aab010540e /std/buffer.zig
parent9564c05cd5641095d48baf982a372f00bdf02659 (diff)
downloadzig-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