zig-help

21196 threads · Page 346 of 424

trying to use @call for tailcall optimization but i get this error 13 messages
New User
compiling to dll 26 messages
Answered
name mangling 5 messages
Answered
[gpa] (err): Allocation size 4096 bytes does not match free size 2509. 15 messages
Answered
Struct field cannot be assigned 5 messages
Answered
Zig how to add another zig package/module? 6 messages
trying to assign a function as field of a struct 26 messages
Use Zig types with @cImported functions 6 messages
performance between loop copy and @memcpy 8 messages
New User Answered
zig 0.11 JSON library: show invalid characters? 32 messages
Relying on the full Linux headers 8 messages
MultiArrayList using static arrays 19 messages
parseInt InvalidCharacter 7 messages
How to use *void from c fn in zig? (Type Issue) 22 messages
how to use this function utf8ToUtf16LeStringLiteral ? 6 messages
Answered
Whats the correct string format? 8 messages
Answered
parseFromValue usage 3 messages
New User Standard Library Answered 0.13.x
Zig equivalent to #ifdef NDEBUG 2 messages
Answered
Are all comptime declerations in a comptime struct redundent? 32 messages
How to add a zig package without compilation? 58 messages
New User Compiler Answered 0.13.x
Is there a particular reason std.hash.Murmur* don't conform to the API of the other hash functions? 15 messages
Copy compile options around 21 messages
Answered
boolToInt gone? 56 messages
Answered 0.13.x
Reading struct as a [*]u32? 74 messages
Strategies for finding what is hitting `unreachable` 36 messages
Getting a substring of a string? 8 messages
New User Answered
Would std.os.mmap work on Windows 18 messages
Hi, I'm struggling with some unwanted const behavior. 10 messages
Answered
Pointer to struct method 2 messages
Using the new zig v0.11 JSON API / Memory deallocation 18 messages
Answered
Deconstruct a returned struct into individual variables? 3 messages
Handle a struct header with a variable body 2 messages
where to install other zig libraries/dependencies? 3 messages
Does anyone like `struct{S,T}` tuple syntax? 71 messages
How does zig.zon work 8 messages
Is conversion from @Vector(4, bool) to @Vector(4, u1) possible? 8 messages
Does defer have an order? 26 messages
New User Answered
Stringify JSON has problems with allocator? 67 messages
Standard Library Compiler Answered 0.13.x
reference counting? 9 messages
Answered
initializing 2d array with tagged union elements 20 messages
Answered
Difference between ?*const fn (usize) ?*anyopaque vs ?* fn (usize) 27 messages
New User
Array parameter error expected type '[4]u8' found '[]u8' 20 messages
New User Answered
zig fmt: how run just to see changes (without making the changes)? 15 messages
Answered
BADF: file descriptor goes bad after leaving scope 34 messages
0.10.x Standard Library Answered
Pass linker args 5 messages
why use ".{}" 37 messages
Answered
ArrayLists created in a loop seem to share an allocator 6 messages
New User Answered
Making a scope timer 55 messages
Answered
How can I initialize a runtime-length slice? 7 messages
New User Answered
Can someone help me with error: type 'u3' cannot represent integer value '16' 11 messages
New User