zig-help

21196 threads · Page 90 of 424

Trying to get a random float between 0 and 1 3 messages
0.14.x New User Answered
How to apply logic and to @Vector(N, bool)? 8 messages
plz help! Segmentation fault 13 messages
0.14.x New User
no type named 'mutex' in namespace 'std' 11 messages
0.14.x Answered
How do you reverse the control flow so that err is the main path? 4 messages
Confused about `file.readAll` 6 messages
Can we detect availability of module/package at comptime? 36 messages
Creating a directory before running a build tool 7 messages
Build System 0.14.x Answered
How to patch a dependency? 11 messages
pointer arithmetic changes alignment? 4 messages
master Compiler Answered
How do you read a fixed number of bytes? 8 messages
Compilation does not link against libc 9 messages
tagged union "subtype" 11 messages
issues with comptime 44 messages
Answered
How to view master docs / std lib docs locally? 6 messages
How do you create a file? (what is this error???) 13 messages
Watch mode fails on WSL2 14 messages
Build System 0.14.x Compiler Answered
Join two anonymous structs 3 messages
0.14.x
passing `fmt` parameter in custom formatter 23 messages
bitfield |= CS8 68 messages
Implicit mutation of function table 7 messages
Answered
Zig Build Basics : link downloaded Raylib 15 messages
No stack trace for testing compilation error 11 messages
Do I have a reasonable understanding of strings/arrays/memory/slices? 3 messages
Answered
Swithc on a tagged union Q 18 messages
New User Answered
Performance cost of smallest scope declaration? 11 messages
Answered
launch shell commands in a sub shell in zig.build 6 messages
Generating structs with memory offsets. 15 messages
Answered
Do strings behave differently in zig 0.14 ? 23 messages
Answered
Is auto-dereferencing a good thing? And can compiler handle it correctly? 2 messages
Compiler New User Answered
How does this code work? 16 messages
New User Answered
How do you check if an int is valid for an enum? 2 messages
0.14.x Answered
addSystemCommand for a .exe fetched as a dependency? 4 messages
Answered
Is that a bug? 39 messages
Answered
Understanding local vars and comptime 10 messages
Answered
lld-link: undefined symbol: __ubsan_handle_type_mismatch_v1 when compiling in ReleaseFast 31 messages
Build System
Compile-time fields vs. constant declarations 7 messages
slice of union literals 2 messages
Getting continous memory leaks. 69 messages
Inline assembly duplicate symbol (ReleaseSmall) 4 messages
0.14.x Compiler
how to get the address of a label? 23 messages
Answered
Cast c_int to bool 7 messages
0.14.x Answered
Function return values inconsistent (DLL) 5 messages
0.14.x New User Answered
How to use pointer in struct? 10 messages
[_]u8 fails to print 23 messages
Answered
For loop expression when is the value in else used 9 messages
Answered
Inconsistent build, bad caching? 33 messages
How Zig understands that directory contents changed since the last build? `Step.Run.addDirectoryArg` 18 messages
Build System 0.14.x Answered
Use struct field within a struct field 10 messages
Answered
Termios CC VMIN and VTIME 3 messages
Standard Library master Answered