# Reading a filled nullable

**URL:** <https://ziggit.dev/t/reading-a-filled-nullable/13037>\
**Category:** Brainstorming\
**Tags:** language\
**Created:** [November 14, 2025, 12:06pm UTC](https://ziggit.dev/t/reading-a-filled-nullable/13037 "2025-11-14T12:06:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![truly-not-taken](https://ziggit.dev/user_avatar/ziggit.dev/truly-not-taken/32/6205_2.png) [@truly-not-taken](https://ziggit.dev/u/truly-not-taken)\
**Post date:** [November 15, 2025, 5:08pm UTC](https://ziggit.dev/t/reading-a-filled-nullable/13037/9 "2025-11-15T17:08:11Z")

</div>

> [@Justus2308](#):
>
> still get a runtime crash in safe modes if you accidentaly try to access `eval` anywhere you shouldn’t because it’ll be `undefined`.

I am failing to crash my program. What am I doing wrong?

```zig
var runtime_known = false;
runtime_known = !runtime_known;
const foo: i32 = if (runtime_known) undefined else 69;
if (foo == 42) {
    std.debug.print("==42: {}\n", .{ foo });
}
if (foo != 43) {
    std.debug.print("!=43: {}\n", .{ foo });
}

```

Output:

```zig
!=43: 1

```

It does not crash. It just uses garbage value.

P.S. I wonder why the garbage is not 0xAA pattern.

---

_[View the full topic](https://ziggit.dev/t/reading-a-filled-nullable/13037)._
