This commit tries to clarify that all capture values in an inline for loop
are not necessarily comptime-known. The previous wording seemed to imply
that they were, whereas the actual guarantee is that they will be comptime-
known only if their source is comptime known.
The wording of this commit comes from mlugg, as they are a more knowledgeable
source on the semantics than I am.
Closes: #30116
Co-authored-by: Matthew Lugg mlugg@mlugg.co.uk
Signed-off-by: Chris Waldon christopher.waldon.dev@gmail.com
This commit tries to clarify that all capture values in an inline for loop
are not necessarily comptime-known. The previous wording seemed to imply
that they were, whereas the actual guarantee is that they will be comptime-
known only if their source is comptime known.
The wording of this commit comes from mlugg, as they are a more knowledgeable
source on the semantics than I am.
Closes: https://codeberg.org/ziglang/zig/issues/30116
Co-authored-by: Matthew Lugg <mlugg@mlugg.co.uk>
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>