mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
Fix #12822: Clarify langref about the behavior of undefined
This commit is contained in:
parent
949cca9f2a
commit
09a96cdfce
@ -999,7 +999,8 @@ pub fn main() void {
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
In {#link|Debug#} mode, Zig writes {#syntax#}0xaa{#endsyntax#} bytes to undefined memory. This is to catch
|
In {#link|Debug#} mode, Zig writes {#syntax#}0xaa{#endsyntax#} bytes to undefined memory. This is to catch
|
||||||
bugs early, and to help detect use of undefined memory in a debugger.
|
bugs early, and to help detect use of undefined memory in a debugger. However, this behavior is only an
|
||||||
|
implementation feature, not a language semantic, so it is not guaranteed to be observable to code.
|
||||||
</p>
|
</p>
|
||||||
{#header_close#}
|
{#header_close#}
|
||||||
{#header_close#}
|
{#header_close#}
|
||||||
|
Loading…
Reference in New Issue
Block a user