zig-help

21196 threads · Page 252 of 424

code criticism needed, 0.12.x 6 messages
New User
How many bytes is a bool? 4 messages
Way to get name of struct, given an instance of it 5 messages
Answered
Any way to make a type without duplicating code that combines two tagged unions 4 messages
how do you get the error set of a function using comptime? 9 messages
How can I prevent the object file from being created when I run `zig build-exe`? 15 messages
Compile-time check for whether a type fits some "interface" 26 messages
slice of []u8 into []u16 2 messages
Thread-safe `LinearFifo` 5 messages
Standard Library Answered 0.13.x
Is there any guide on how to setup ZLS to give out c completions using the VSCode extension for Zig? 56 messages
New User
Pass array of `@Vector`s to C 11 messages
Initialization expression of a tagged union reflection 4 messages
Invalid access to memory location. When accessing struct values after HTTP GET request 11 messages
Size of packed struct excluding its padding? 8 messages
New User Answered
store dynamically sized array in struct 4 messages
Is it safe to store the address of a comptime var for runtime usage? 17 messages
Answered
Compiling Lua with Zig leads to a crashing DLL. 27 messages
Compiler New User
super simple issue setting up zig 9 messages
0.11.x New User
How does zig cross compile 17 messages
var x = MyStruct.construct(); 44 messages
Answered
Simply skip a test 14 messages
`Either` type. 4 messages
Best way to compare to *anyopaque? 3 messages
Answered
usingnamespace error 10 messages
Default calling conventions. 7 messages
evaluation exceeded 1000 backwards branches 3 messages
Answered
Param type inference when passed as anytype 6 messages
Is there a better way to have two read types based on runtime control flow? 5 messages
0.13.x
Access file of external package. 3 messages
Arrays String mess 33 messages
New User
Http GET requests in Zig 2 messages
Get Request 13 messages
Hex string to [_]u8 3 messages
Answered
Is there way to disable generating of .pdb file in `zig-out/bin` and rename output dir? 2 messages
How to pass custom linker flags with build.zig 2 messages
Autodoc usage 6 messages
Standard Library 0.13.x
how to use dependencies? 7 messages
Compiler
Building an array at comptime via a registration function (called from other files) 31 messages
mkdir -p in zig? 6 messages
New User Answered
Enum naming conventions 2 messages
Answered
Idiomatic way to print a command line tool’s usage? 7 messages
Standard Library New User 0.13.x
error: C import failed: AnalysisFail 3 messages
evaluation exceeded 100000 backwards branches 3 messages
Language semantics question about optionals. 10 messages
Zls not working inside parenthesis 12 messages
Answered
Requesting code review: Wolfram cellular automaton 18 messages
Good alternative to this use of usingnamespace? 38 messages
Answered
unaligned reads/writes 19 messages
resize and destroy anyopaque pointer 5 messages
How to generate a simple text file during build 7 messages
Answered