zig-help

21196 threads · Page 251 of 424

how to iterate over fields of an enum at comptime 2 messages
Answered
var of type []u8 to a bufferedWriter 8 messages
Is optional chaining possible in version 0.12? 2 messages
Answered
Flag to emit test binary in the current directory? 2 messages
0.11.x New User Answered
error: expected type 'f64', found 'usize' 47 messages
0.11.x New User
predictable release timelines 19 messages
Answered
Does zig honor defer deinits/frees on program interrupt (Ctrl+C)? 9 messages
New User
What is the correct way to handle stdout? 9 messages
Answered
What is the difference between triple combinations -target native VS native-native VS ... 18 messages
Compiler Answered New User 0.13.x
expected type 'zig.CrossTarget', found 'zig.system.NativeTargetInfo' 5 messages
0.11.x
Understanding removal from list in a while loop: 25 messages
Answered
Sentinel (number of elements created) 7 messages
Fail to trigger build for raylib from my project while moving build to zig 42 messages
Field root_module not found in Build.Step.Compile 14 messages
Standard Library Compiler 0.11.x New User
access of union field 'Pointer' while field 'Optional' is active 2 messages
comptime verification 64 messages
create print function that is compiled out if first argument doesnt match a list of valid values 37 messages
New User
Building an array of strings for the files in a directoy 8 messages
0.11.x
VSCode Zig debug points not hitting on Windows 2 messages
How do I read a line from stdin? 4 messages
Answered
How to use an already built Zig library (libfoo.a) inside a Zig project? 8 messages
New User Answered 0.13.x
union(enum) initialize to void 8 messages
Use a different version of dependency based on zig version 2 messages
Weird thing about "error union" while doing ziglings 4 messages
Answered
Clap returns a weird error 21 messages
0.11.x New User Answered
Type id function broke? 8 messages
New User Answered 0.13.x
Different ways to continue from parent loop 3 messages
0.11.x
Get value for symbol 21 messages
New User
Comptime Array size deduction 10 messages
New User
Using both 0.11 and master 3 messages
Answered
Best way to view asm of executable 41 messages
Compiler Answered New User 0.13.x
error: Invalid record 9 messages
Compiler Answered 0.13.x
What is the diff b/w .read() and .readAll()? 83 messages
@fieldParentPtr broken for zero-size-field unions? 2 messages
What `linkSystemLibrary` does? 13 messages
Modifying a const array, how is it possible? 2 messages
Answered
for loop over custom data structure? 18 messages
Understanding error messages (creating a LinkedList) 47 messages
Is there backtick string in Zig? 3 messages
Answered
Initializing an array to undefined the same as setting it to 0 memory? 3 messages
When storing an allocator in a struct, should I store an allocator pointer or just the allocator? 6 messages
Answered
What's the idiomatic way to fall back to a default value on error? 10 messages
New User Answered
Does Zig support anonymous struct or record? 11 messages
Answered
Issues trying to read environ 2 messages
0.11.x
[macOS] Statically linking results in libobjc linker error 3 messages
0.11.x New User
Check if OS is POSIX 2 messages
Is there a way to import a zon dependency for use during the build process? 10 messages
Modifying a const slice with var array 4 messages
New User
zig nvim module help 17 messages
New User Answered
Generic struct with different fields depending on input + methods 12 messages
0.11.x