zig-help

21196 threads · Page 211 of 424

Find which Union field is active 6 messages
New User 0.12.x
Need help with compilation of older zig project 6 messages
How can I save a `std.heap.GeneralPurposeAllocator(.{}){}` as a struct field? 38 messages
slice to slice of slices at runtime 7 messages
0.14.x New User Answered
sorting StringArrayHashMap 23 messages
Standard Library New User
Am I making good use of ArenaAllocator or am I abusing it? 5 messages
Construct array at comptime 31 messages
Answered
@embedFile outside root path with relative path in v0.13.0 2 messages
Answered
How cast [N][*:0]const то [*c][*c]const? 37 messages
Answered
How can I iterate over the decls of a struct, but not just the names 43 messages
Answered
possible frontend bug 12 messages
Compiler
What are my options for polymorphism? 20 messages
New User 0.13.x
How do I return a slice of strings safely? 8 messages
Answered
Review my zig code 42 messages
New User Answered
help with const qualifier 3 messages
Answered
Remove error from error set 4 messages
Answered 0.13.x
Hihi 14 messages
New User
How does std.fs.File know which file it is? 2 messages
Answered
Is there a way to join paths on the stack? 6 messages
How to produce C header for zig library? 6 messages
Made the typical island counter on a 2d array in zig, 9 messages
New User
String literal as slice 8 messages
Answered 0.13.x
readUntilDelimiterOrEofAlloc 2 messages
Standard Library Compiler Answered 0.13.x
How are you able to create a slice from two pointers? 3 messages
0.14.x Compiler Answered
C library calls for *const anyopaque 4 messages
Answered
Kqueue simple event loop 2 messages
How to use std.mem.sliceTo() 4 messages
Detect X11 or Wayland in the same binary 30 messages
New User 0.12.x
Accessing context from an ad-hoc function 7 messages
New User Answered
Convert string to lower case in place 101 messages
Make package manager also download source code locally 11 messages
Answered
Unsure what is causing the memory leak here 3 messages
New User Answered
Can I check if a file exists without opening it? 12 messages
Conditional Import 31 messages
`std.fmt.format` seems to cause an infinite loop? 3 messages
How to read a float (etc) from memory? 6 messages
How exactly do arrays work in zig? 23 messages
New User Answered
What is the intended way to use the new doc system? 81 messages
Switch from 0.12 to 0.14 13 messages
Answered
I cannot build Zap 27 messages
Build System New User 0.13.x
Linux stat 3 messages
Standard Library New User Answered
Avoid leak and segfault 20 messages
New User Answered
can't return errors from switch 6 messages
New User 0.13.x
Zig build, how to import from different folder. 54 messages
Build System 0.12.x
Unreachable code error while trying to iterate through a directory 16 messages
Inlining runtime-known enum to generate code at comptime 14 messages
0.14.x Answered
Quick question about comptime 2 messages
cast `[*c][*c]u8` to `[][]u8` 15 messages
Answered 0.12.x
Parse json without a defined struct 3 messages
Standard Library New User
I need more help with assigning values to unions 7 messages
Answered 0.13.x