zig-help

21196 threads · Page 197 of 424

Dealing with errors (switch) 70 messages
New User Answered
bypass undefined behaviur check 20 messages
Answered
[solved] Return ArrayList from function. `result.list` works inside, but not outside 146 messages
Answered
Rewrite Rust code with traits on Zig 5 messages
Tests in structs? 2 messages
New User Answered 0.12.x
[solved] How to create a set[T] where T is any type? (aka HashSet or similar) 100 messages
New User Standard Library Answered 0.13.x
How to get the home directory in zig? 2 messages
Answered
Equivalent to Rust's if let 10 messages
how to cast a single value to a slice 9 messages
Answered
Reflection on function parameters 6 messages
0.13.x
Why no byte type? 2 messages
0.13.x
Understanding segfault messages 21 messages
[solved] Understanding undefined 44 messages
Answered
Why iterating over elements of std.os.argv is printing the same pointer address? 22 messages
Answered
get context of `MissingField` error in `std.json` 5 messages
How to get the output of a command into a Zig "list" of things 31 messages
Standard Library New User 0.13.x
Save location for TranslateCStep 5 messages
Answered
[solved] Best way to combine a std.ArrayList([]const u8) into a single []const u8 separated by ' '? 17 messages
Answered
How to @import module root 28 messages
Build System 0.12.x
[solved] @import a file that has a main. Is it legal? 19 messages
Answered
Create an array of strings to pass to a C function 2 messages
New User Answered 0.13.x
Pointer gets invalid from unknown reason 21 messages
Answered
init a array of struct with feilds of zero 21 messages
New User Answered 0.13.x
shared state within handlers 19 messages
github CI workflow error: unable to find zig installation directory 8 messages
sqlite lib specific question i think 20 messages
Answered
invalid escape character: '0' 5 messages
reorder comptime array 5 messages
compiling terminated unextectedly 2 messages
New User Compiler Answered 0.13.x
Why is the lenth of an undefined array in Zig always 16916950? 10 messages
ziggling 34 14 messages
New User Answered
Cross Compiling 54 messages
Build System Compiler 0.12.x
Run a Specific Test Method 4 messages
[Solved] Soooo- 15 messages
Answered 0.13.x
What is the zig way to poll over multiple files? 7 messages
0.14.x Standard Library Answered
What's the difference between anyerror!void and !void? 3 messages
0.13.x
[solved] How to index from an EnumSet? 96 messages
New User Standard Library Answered 0.13.x
Import working on "zig run" but not on "zig test" 78 messages
including zig library in my project 21 messages
wasm performance 5 messages
std.mem.Allocator.resize use 11 messages
Answered
compile time peer type resolution without a hack 42 messages
0.13.x
What is "unable to resolve comptime value"? 19 messages
Answered
Is this the best approach to match on a bit flag? 28 messages
Answered 0.13.x
Fastest way to copy struct? 17 messages
Comptime append 3 messages
Convert enum to union(enum) with same tags? 3 messages
Parse multiple ints from c string 16 messages
Make bindings nicer by declaring methods in opaque {} 3 messages
Answered 0.13.x
How to parse JSON from client.fetch {.response_storage = std.ArrayList(u8).init(alloc)} 19 messages