zig-help

21196 threads · Page 408 of 424

Acces the active field of a union 36 messages
New User
How to guarantee struct field ordering with ArrayList? 47 messages
Is this done in comptime? 7 messages
TypeOf(.enum_literal) returns TypeOf(enum_literal)? 33 messages
What's a frame? 20 messages
New User
Troubles passing through a struct as a function param 7 messages
compiling head on macOS 12 with zig build 6 messages
zigux self referential struct issue 8 messages
how to know which field is active of an untagged union? 13 messages
does defer guarantee to run when SIGINT comes in? 6 messages
Zig Branch Quota Comptime Abuse for ECS and Questions 4 messages
What 'kind of something' is the [_]u8 part to the right of the equal sign if not a type, for arrays? 23 messages
New User
Use of enums in zig 8 messages
Weird, 'undefined' bool is false? 14 messages
Compiler crash when attempting use comptime ++ operator on undefined slice 3 messages
Compiler New User
Initializing anonymous struct in return statement? 3 messages
New User
Return type of generic function? 43 messages
What should be inlined? 9 messages
Is General Purpose Allocator performance expected to degrade as the number of allocations increases? 3 messages
ArrayList in struct const ? 17 messages
Is there a way to easily choose struct ABI (lazy or extern)? 6 messages
Can I hide logs from my functions when using test blocks? 2 messages
Getting an `IterableDir` from a `Dir` 40 messages
Formatting compileLog 19 messages
gsl complex vectors, compatible with C 15 messages
Check if function return type is an error union 3 messages
Handling multiple error statements consecutively 68 messages
How do you import 3rd-party packages? 14 messages
index out of bounds while reading 44 messages
possible to run zig fmt as a build step? 4 messages
Troubles with pointer arithmetic 7 messages
enum cast 14 messages
How do I use `zig build-exe --debug-log`? 3 messages
Can't get cImport to work at all 15 messages
how show heap usage at runtime? 64 messages
Get time since epoch in seconds 2 messages
Standard Library
Why do I get a segfault when my HashMap is declared globally? 42 messages
Standard Library Compiler New User
Bad memset and memclr for Freestanding ARM (Playdate) 6 messages
build_options example 4 messages
Switch on String 9 messages
zig build, copy build artefact to directory 7 messages
Efficient Method for Integration Tests 14 messages
How to Custom Build.zig Test Mode 3 messages
How to pass const [110]u8 to a function as []u8 26 messages
How to emit autodocs 25 messages
How to use and call function pointers 4 messages
Creating a tagged union in an `inline else` 12 messages
Check if `anytype` is a part of a given enum? 10 messages
Supplying a dependency of a dependency 3 messages
is it possible to add fields to a enum dynamically? 78 messages