zig-help

21196 threads · Page 226 of 424

Get keyevent in terminal? 3 messages
Standard Library Answered 0.13.x
Foo.zig vs foo.zig 11 messages
Is it possible to have comptime type inference as a fn return without passing the type as argument? 2 messages
Answered
is there a way to avoid this code duplication? 11 messages
0.12.x
How to unittest functions getting as a parameter `std.zig.Ast` 5 messages
Answered
Faulty tests? 22 messages
New User 0.12.x
Weird errors where I cant "try" something that might return an error 18 messages
Answered
build.zig: LazyPath vs absolute paths 59 messages
Optional addInstallDirectory 4 messages
Build System Answered
Are array accesses UB if OOB? 76 messages
New User
How to declare `extern` function with explicit error set? 7 messages
Build System Answered
I need to access `textures/owl.bmp` through `src/main.zig` with `@embedFile`, how to? 11 messages
0.12.x
How to properly return an extern struct in wasm32-emscripten target? 3 messages
New User
How to temporarily ignore/suppress memory leak error messages in std.testing.allocator? 9 messages
Can't write from string from stdin to stout 5 messages
Answered
How to send socket data in std.posix 21 messages
Best timestamp for benchmarking? 32 messages
Asserting first x bytes of integer are 0 21 messages
0.12.x
How do you move a file to a new destination? 7 messages
Retrieve exit status code of child process 7 messages
Answered
Raylib but more about build.zig and run 3 messages
New User 0.12.x
error - crash 14 messages
Answered
Running zig test on a module which imports a .zig file from the parent directory results in error. 4 messages
Build System New User Answered 0.12.x
no switch with a string 24 messages
New User Answered 0.12.x
Triming file input 2 messages
New User Answered
posix issue on macos 3 messages
Change default test parameters 3 messages
Build System Answered
@offsetOf and arrays 23 messages
zig/lib/std/fs/File.zig Stat struct has not created at field 6 messages
Autodoc: How to emit docs using `zig build` as opposed to `zig build-exe`? 3 messages
Answered
Narrow type of anyerror to check all error union states? 88 messages
0.12.x
build.zig allowing to loop through files in a directory and add them to a comptime hashmap 117 messages
Answered
Initialize an array of 200 items 61 messages
Can I collapse these 3 loops 14 messages
Answered
is it possible to capture an optional as a var? 18 messages
Answered
Visual representation of compiletime vs runtime constants 2 messages
0.12.x
On scopes and lifetimes 13 messages
Answered
ArrayList, appending struct causes overwrite on previous values 21 messages
How to open home dir with `~` 6 messages
Answered
implementing event loop 13 messages
Standard Library 0.12.x
Unwrapping Array of Structs While Iterating 43 messages
0.11.x
Step Over on Windows on VS Code 2 messages
Common causes for windows-fine program not running on linux 3 messages
Can't seem to set stdin in std.ChildProcess 24 messages
New User Standard Library Answered 0.12.x
Using godbolt and zig 29 messages
0.12.x
Will Zig get Bounded Generics? 136 messages
Standard Library 0.11.x
zig cc standard 7 messages
Answered
hlep hash nu match 20 messages
Answered
zig build c/c++/assembly 11 messages
Build System Answered 0.13.x
taking in `self: Self` 5 messages
New User Compiler Answered 0.12.x