zig-help

21196 threads · Page 218 of 424

pointer alignment \*u8 to \*u32 25 messages
How do i resolve comptime when calling a function to a pointer ? 3 messages
Answered
cmpxchg and non-pow2 integers 23 messages
Answered
@alignOf 7 messages
Answered
Trouble with types 4 messages
Is it valid to enumerate files in a directory inside a build script? 2 messages
Weird behavior between sending allocated/non-allocated strings in a socket writer 41 messages
allocate buffer on stack runtime dependant 105 messages
Answered
Is there any way to make a HashMap with multiple values under each key? 15 messages
Standard Library Answered 0.12.x
can't mutate arguments given to function 7 messages
Answered
What would you think of @import options 56 messages
How to set function param mutable 26 messages
0.12.x
Setting a variable from a catch block 10 messages
Compiler 0.13.x
Help With LLVM-18 When Building Zig From Source 9 messages
Compiler 0.13.x
Dealing with multi item pointer allocators 5 messages
0.12.x
Expected type blah, found type blah? 4 messages
Answered
Issue between compile and LSP ? 4 messages
Answered
how can i convert int to string 6 messages
Closures as structs 8 messages
String Interpolation 4 messages
New User Answered 0.12.x
Better way to handle errors? 7 messages
New User Answered 0.13.x
How to build for other architectures 39 messages
Answered
use `~/` in `openDir()` 2 messages
enum with declaration show up as having none 2 messages
Answered
Sleep current thread for seconds 4 messages
0.12.x
example in zig docs don't work 3 messages
Answered
Comptime const 2 messages
Weird LLVM-IR generation when using non-PO2 vectors 13 messages
Compiler
(Syntax) List of structs on heap? 38 messages
New User Answered 0.12.x
Help with switch on generic? 3 messages
zig build test and zig build run dont actually test the codebase 5 messages
0.12.x
test for compile error 12 messages
Answered
How to build new LazyPath from LazyPath.dirname + filename? 21 messages
Pass struct method as argument to function 4 messages
Answered
dynamic type for readPackedInt 2 messages
unable to resolve comptime value with anytype 3 messages
StringHashmap cleanup/leak 7 messages
How to query method's type (counterpart to std.meta.hasMethod)? 29 messages
DoublyLinkedList implementation and API questions 9 messages
How to list files based on a filespec/glob/wildcard 2 messages
Standard Library New User 0.12.x
compiler fails to build with LTO on gentoo package 3 messages
Function review (storing/deleting from a hashmap in zig) 94 messages
Force command to re-run each time, and checking if output is dirty to determine recompilation 13 messages
Build System Answered 0.12.x
file to path 6 messages
Answered
Many-item pointer acting like indexed C pointer 15 messages
Compiler 0.12.x Answered 0.13.x
Help with "unpacking" a loop into a tuple 3 messages
using std.fmt.bytesToHex gives 'unable to evaluate comptime expression' 10 messages
0.12.x
Why does std.log.err fail tests? 47 messages
Answered
hello i am trying to learn the language but i am getting an error 39 messages
how do i iterate over all files in a folder? 6 messages