zig-help

21196 threads · Page 300 of 424

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