zig-help

21196 threads · Page 136 of 424

Best practices to deallocate recursive structures 3 messages
using `std.fs.File.Writer` as `[*c]FILE`? 98 messages
Answered
Metaprogramming in Zig: Extracting Function Types at Compilation 3 messages
Build System
std.JSON.stringify issues 6 messages
Answered
How to take user input and then compare the entered information to constant text? 5 messages
New User Standard Library Answered 0.13.x
A Writer that print to a string 7 messages
Standard Library Answered 0.13.x
How to include tests when doing "zig build test:". 2 messages
Answered
What is the idiomatic way to add test data files to a zig project and read them from a test case? 7 messages
Unable to modify a mutable struct variable 9 messages
Answered 0.13.x
[solved] How to initialize [*c]const [*c]const u8 10 messages
0.14.x New User 0.13.x Standard Library Answered
Can't bootstrap CMake from source using Zig toolchain 7 messages
Answered
What kind of type is this: `struct { comptime comptime_int = ... }`? 33 messages
How does --release=fast work, as opposed to -Doptimize=Fast? 2 messages
Build System
How to use std.test.expectEqual when function can return an error? 25 messages
How do you use "union" type inside a bitfield? 5 messages
exe.main_pkg_path upgrade path 19 messages
attempt to use null value 14 messages
New User Answered 0.13.x
Help structuring isometric rendering code 3 messages
Dealing with constructor function where 1 field depends on another field which has a default value 33 messages
Answered
Best practice when a struct holds a slice which may or may not be allocated 9 messages
Answered
OutOfMemory Error when using ArrayList 50 messages
Answered
Argument parsing? 4 messages
0.14.x Standard Library
How to turn while true: ++num into an iterator 3 messages
0.14.x Standard Library New User 0.13.x
difference between std.mem.split and tokenize 3 messages
Answered
How to separate build and run steps idiomatically 2 messages
Struggling to make a pointer to an array coerce to a slice 13 messages
[Beginner] Need to know why list.append is leaking memory 8 messages
Answered
Getting constant value using compile time reflection 14 messages
Answered
need help with constCast issue 3 messages
Answered
Adding signed and unsigned values 199 messages
cast return type of @import 7 messages
New User 0.13.x
build.zig/comptime shenanigans - calculate optimal log padding? 4 messages
Build System 0.14.x Answered
How to set callback in zglfw 8 messages
0.14.x New User Answered
is there a reason why zls fails to resolve zgui specifically? 3 messages
0.14.x Answered
zig skip printing `error: the following command failed with 1 compilation errors` 2 messages
0.14.x
When elements of an array are changed inside of a while loop the values go back to undefined outside 2 messages
Answered
Taking user Input 33 messages
0.14.x New User Answered
Check if two types are identical 47 messages
more idiomatic alternative to RTTI? 55 messages
Answered
Taking generic functions as arguments of other generic functions 2 messages
0.14.x New User
is there c's clock() in zig? 16 messages
Why slicing syntax on many item pointer produces a pointer to array instead of slice ? 6 messages
Answered
Check if bool is not null and true (shorthand)? 5 messages
Where to find build logs? 4 messages
Compiler New User 0.13.x
Utf8View/Iterator question 17 messages
Answered
How to do arithmetic encoding in zig? 5 messages
0.14.x Standard Library New User Answered
installHeadersDirectory() from deps 2 messages
Build System
Copy behavior 4 messages
Answered
Bitset iterator skipping unset bits 4 messages
0.13.x
Join reader errors. 10 messages