zig-help

21196 threads · Page 386 of 424

How to iterate over ArrayList in a for loop? 4 messages
Answered
Convert []u8 into [32]u8 19 messages
Answered
Is there a place to get general code reviews? 73 messages
Unable to call function inside of Generic struct 13 messages
New User Answered
How to make struct have field & initialization only when a build option is enabled? 11 messages
Answered
Using allocators 83 messages
New User Answered
API design patterns: opaque or exposed? 39 messages
Answered
inspect assembly 5 messages
Use of ptrCast and align(1) to access u32 integer from an array of bytes 2 messages
Answered
How to reuse a `FixedBufferAllocator`? 2 messages
Segmentation fault when using threadlocal ArenaAllocator in Testing 16 messages
Standard Library Answered
C pointers coercion rules 15 messages
Answered
error: ld.lld: undefined symbol: __modei4 2 messages
Using `@fieldParentPtr` to get a struct from an active union field? 6 messages
Answered
Returning a struct with different methods (based on option)... but also would have a common method? 13 messages
Is there a standard library data structure to turn a statically sized array into a stack? 4 messages
Answered
Best way to investigate `segmentation fault`? 25 messages
How to define a function type? 4 messages
Why use `@This()` or `Self`? 4 messages
Answered
trying to use the inline assembly 6 messages
`comptime` compile error 16 messages
Answered
How does linkLibCpp() work? 2 messages
WASM memory management 29 messages
Zen: Point 3 v. Point 10 22 messages
Answered
Generic bucket to hold different things 91 messages
Answered
Error code 5, no explanation 5 messages
compiling my zig project to armv7l 7 messages
Out-of-bound error not reflected in return type? 20 messages
Compile Error trying to call setColor() 2 messages
Standard Library New User
how to make this less ugly 8 messages
Check if type is integer 2 messages
New User Answered
Linux syscall not found 2 messages
Standard Library
Passing Arrays and Slices to Functions 3 messages
Answered
switch on float number ? 15 messages
Answered
WASI Preopens 53 messages
Standard Library Compiler New User Answered
Difference between `comptime x: i32` and `const x: comptime_int` 13 messages
Answered
slower with more threads 18 messages
What's the difference between an array and an array pointer? 15 messages
queue that blocks thread when empty 4 messages
Comptime to enumerate return types? 9 messages
Can you coerce a []T to a [N]T 3 messages
type-casting std.meta.cast 4 messages
callback function args, callback? 38 messages
Answered
Linking napi symbols on Windows 123 messages
New User Answered
Testing I/O 4 messages
Cross-compiling using LLVM and GTK blobs 4 messages
New User Answered
How does `std.mem.split` return `SplitIterator(T)`? 21 messages
How does `*const [N:0]u8` get treated as `[]const T`? 7 messages
Install/build zig with bootstrap on linux 15 messages
Recursive error compiling 13 messages
Answered