zig-help

21196 threads · Page 159 of 424

Return union field from function 22 messages
code review, accessing a file and appending a line 17 messages
getOrPutValue must be known at comptime 3 messages
New User Answered 0.13.x
Zig Callbacks 29 messages
New User
Check if anytype coerces to type? 8 messages
Answered
Implementing a C function 21 messages
OutOfMemory when appending to ArrayList 4 messages
New User Answered 0.13.x
how do i check if a variable is undefined/null? 6 messages
New User
[solved] How to create a struct with fields that mirror an enum 10 messages
Answered
[solved] What data structure for an enum set of an arbitrarily long number of bits? 22 messages
Answered
cannot format slice without a specifier 3 messages
tests from imported modules not running? 6 messages
Instrumenting emitted C code. 14 messages
Why make error set more specific 2 messages
Answered
ideal way to represent little endian byte array 2 messages
Answered
[solved] Issue with string lists: expected [][] found *const struct{ ... } 5 messages
Answered
this is causing a crash 57 messages
what does 1550 signify in the nightly release "0.14.0-dev.1550+4fba7336a"? 18 messages
Answered
How do I ignore backslashes in string literals for filepaths? 2 messages
Answered
how do i see if an item is contained in an array? 126 messages
Zig type erasure for ECS 14 messages
Where to download Zig 4 messages
Answered
Is it possible to pass a type array as argument? 10 messages
defer always occure even with break/continue ? 8 messages
Answered 0.13.x
while () loop: { } or loop: while () { } 3 messages
Answered
Beginner Projects 10 messages
New User
On passing parameters by reference by passing them by value 11 messages
Zig interface messing values up 32 messages
0.13.x
StringHashMap into ArrayList (Memory Leak) 12 messages
Issue with std.mem.bytesAsSlice and @alignCast 11 messages
Standard Library 0.13.x
A counterpart of @fieldParentPtr for optionals 2 messages
Succinctly defining struct of slices 3 messages
Answered
Emitting bitcode on bootstrapped stage2 Zig without llvm 3 messages
0.14.x Answered
how do i run a function needing a alloc at comptime? 14 messages
How to iterate a nested ArrayList 12 messages
New User Answered
Trying to include a c repo for embedded: libopencm3 24 messages
Build System Compiler Answered
Is it possible to create a system to get enum names at runtime? 5 messages
How do I get the amount of characters written with GenericWriter.print() 3 messages
Answered 0.13.x
How i can get the length of a file in zig? 12 messages
Answered
About windows target and osdev 4 messages
Build System 0.14.x
Printing box drawing characters? 6 messages
New User Standard Library Answered 0.13.x
[solved] Calling a function from a struct as it is constructed with T{....}.theFn() 6 messages
Answered
Combine slices at runtime 4 messages
Standard Library 0.13.x
seg fault 17 messages
Typecasting at runtime? 30 messages
Standard Library 0.13.x
How to easily add line number to log? 11 messages
Why `&` of a T automatically converts to *const T rather than *T? What is the right way to get a *T? 9 messages
0.14.x New User
Http url Download file. 23 messages
I am a-bit confused about this. 3 messages
Answered
How to retrieve environment variables at compile-time in Zig? 5 messages
Answered