zig-help

21196 threads · Page 158 of 424

Pass elements of an anonymous struct as function parameters 3 messages
Answered 0.13.x
Reflection on private decls 12 messages
Pre-loading a HashMap at comptime 15 messages
What's the "zig" way? &buf vs allocator 44 messages
Answered 0.13.x
slice with mutable structs 10 messages
Logging to the console 18 messages
How to format c string and send to c function 6 messages
failing to build zig locally 71 messages
0.14.x Answered
Understanding undefined value behavior 29 messages
Answered
@as behaves differently for a `for` loop iterator? 5 messages
New User Answered
can you see source files for zig built wasm executables in chrome? 11 messages
Answered
Create tuple in for loop 71 messages
elaborate 22 messages
Unpacking in zig 16 messages
Need help with error message when bit-shifting 9 messages
New User Answered 0.13.x
Need help deciphering an error message 11 messages
New User 0.13.x
Confusion with using @as 13 messages
Different values when accessing a value from hashmap from constant to variable 12 messages
Error while building tuple type 5 messages
Answered
string literal to []u8 (easy way)? 27 messages
0.13.x
Does zig or lib have a function to round off float values up to a decimal? 25 messages
New User
Deterministic run step execution order 9 messages
Build System Answered 0.13.x
A common case of identifier duplication in generics 38 messages
Stat file or directory 9 messages
Standard Library Answered 0.13.x
Comptime array in switch prong 4 messages
Anytype/Some "interface" as function return type 22 messages
Answered
Difference between --release=fast and --Doptimize=ReleaseFast? 10 messages
Answered 0.13.x
Understanding pointers 5 messages
Docker zig TCP server not killed with CTRL-C 15 messages
Answered 0.13.x
`std.StaticStringMap` gives `error: global variable contains reference to comptime var` 19 messages
Answered 0.13.x
Isn't this const variable changing in the for loop? Why does it work? (Ziglings exercise 16) 5 messages
Answered
Returning generic functions for serialization 6 messages
New User Answered 0.13.x
library docs not loading? 3 messages
New User
File system watcher 6 messages
inline question 9 messages
Terminate []u8 dinalically 6 messages
Answered
how to add lib in zig ? 13 messages
Answered
Can you import directly from the C file added by `exe.addCSourceFile` 4 messages
Compiler New User 0.13.x
how to activate all tests in all files in root.zig? 3 messages
Convert C style value errors to zig errors (working with zigwin32) 5 messages
What size is a function in a struct 10 messages
Answered
how to ensure all bytes have been written (std.net.Stream) / how to flush a stream ? 9 messages
Standard Library 0.13.x
Weird segfault in identical code that doesnt segfault 8 messages
Answered
Using zig.zon file and importing one build file into another. 39 messages
Answered
Reading incorrect mutex data 24 messages
Answered
Confusing error return trace in 0.13.0 8 messages
0.13.x
Why adding a small enum doesn't change struct size? 5 messages
Trying to learn Tiger Style 2 messages
Getting error in switch on Typeinfo for union payload 4 messages
Answered
sizeOf slice 3 messages
Answered