zig-help

21196 threads · Page 224 of 424

is there a call to errdefer in the scope calculating the value for a GetOrPutResult? 15 messages
comptime slice indexes returns pointer 4 messages
why same line "fmt: off" moving? 31 messages
Empty switch range 4 messages
0.13.x
Problem with types: []u8 accepted in file.read() but not in RingBuffer.readFirst() 18 messages
New User
how to create output directory in build.zig? 15 messages
Build System Answered 0.12.x
packed struct weird size 13 messages
print comptime known format 26 messages
take reader as parameter 16 messages
New User Answered 0.12.x
how to get file information 17 messages
Answered
How to set values of variables in an application being built by zig build? 4 messages
@fieldParentPtr increases pointer alignment 51 messages
Zig 0.11.0 -> 0.12.0 not picking up linker script for Cortex M 15 messages
how to assert pointer within range? 8 messages
Question about Pointers in Ziglings 19 messages
New User
Command lines arguments, can't iterate through them ? 46 messages
New User
How to printf-debug a zig build? 4 messages
Build System Answered
Initialize Array with only some indices 2 messages
New User Answered 0.12.x
Global variable / identifier from comptime string 8 messages
Answered
any patterns for specializing a generic type? 13 messages
Converting `std.mem.Allocator` to `nk_allocator` (Nuklear) 17 messages
@cmpxchg documentation... wrong? 4 messages
Are constants computed with comptime_float guaranteed to be bit-identical for each compile target? 13 messages
Weird error during Fn init 8 messages
Re-indexing for loop while it is running 16 messages
New User
Getting a local variable is never mutated error 8 messages
Answered
Blocking operations 5 messages
New User
When would I need bare union instead of tagged union? 7 messages
Answered
`Allocator` functions requiring comptime alignment & C interop 12 messages
Standard Library
Arrays allocation 55 messages
New User
Generating 100x random number during compile time? 25 messages
Standard Library New User 0.12.x
How to format using a custom writer 3 messages
0.12.x
I don't understand why this loop would panic 7 messages
New User Answered 0.12.x
Handling an error by panicing 13 messages
0.12.x
build.zig bug in either my code or master 9 messages
Making an error file 3 messages
0.12.x
How to type hint GenericReader? 6 messages
Answered
Can't build zig nasm on windows 26 messages
tagged union field assignment 24 messages
Answered
Is it possible to give the compile process an output directory? 7 messages
Answered
how to use `std.zip` to list contents of Zip file 15 messages
Parsing CSS file and space still coming despite checking against it 51 messages
New User
how do I use the new std.zip 2 messages
Make a program able to also compile Zig code 8 messages
Answered
Can you not print booleans? I'm so confused. 4 messages
Answered
Get function identifier to use 8 messages
0.12.x
Unexpected behavior on iterating a []const u8 slice 16 messages
Memory allocation and arrays of struct ! 44 messages
New User
Is assignment destructuring allowed? 5 messages
Answered
How to do an OR or AND statement in Zig 20 messages
New User