zig-help
Assigning a tagged union.
0.11.x
New User
Answered
Forwarding an error
0.11.x
New User
Answered
Getting up to speed to the latest development version
0.13.x
Why is the builtin Fn struct's return_type field optional?
Answered
Test Output
Answered
Zig doesn't find my libc include paths. How do I give it custom ones?
How to specify outputdir?
Compiler
Answered
why does this comptime block compile?
Answered
Zig build with build.zig.zon
TypeError in wasm
Answered
Can somebody explain to me why `self.position` is always the default in the update function?
Answered
Pass std.io.getStdIn().reader() in a function.
Standard Library
New User
0.13.x
cast usize to T
Answered
How to debug "command terminated unexpectedly"
Compiler
New User
Answered
Why is error handling needed for C functions that return plain structs
Answered
Unable to assign a nested u8 array (String) to a pointer
pass 2D array to function
Answered
Undefined symbols when attempting to compile zig compiler
Compiler
How to directly read a struct from a file?
Answered
0.13.x
error: dependency loop detected
comptime, how to avoid unnecersarry generation of code
Answered
0.13.x
make 2d slice with one contiguous memory allocation
Answered
How to upgrade zls to v0.12.x in neovim?
How to convert a []u8 to a null terminated ([:0]u8)
panic: incorrect alignment
Answered
Equivalent Zig code from C `extern volatile unsigned int mbox[36];`
Use a struct in a array.
New User
0.13.x
Casting a single-item pointer to a byte slice and back
Is there a way to pass a reader as an argument?
zig is not recognized in vscode terminal?
New User
Implementing a type-indexed map
circular struct references that are declared in different files?
Answered
Can the compiler infer `noalias`?
Are unused Union fields pruned by compiler?
Idiomatic way to free "interface" types.
Answered
idiomatic way to free optionals
New User
Why is this code leaking memory?
Answered
deinit and "cast discards const qualifier"
Answered
does @field support functions?
0.11.x
Answered
slice from two pointers
Standard Library
New User
0.13.x
HashMaps get slow over time?
initialize 2D array to non-zero value
Answered
Packages
0.11.x
New User
Answered
Is there a way I can sum an i8 to an u8?
Answered
Type State Pattern in Zig
Answered
Wrong type in code generated by translate-c?
Answered
Compiler Dev Contacts
Compiler
How to read 4 bytes of a binary file?
Standard Library
0.11.x
Answered
build a simple cpp hello world using zig build
When to use deinit() and when clearAndFree() from ArrayList?
Answered