zig-help

21196 threads · Page 404 of 424

Import zig package 18 messages
Cannot compile an Enum with only one element when passed to AutoHashMap. 3 messages
Standard Library
Shared library referencing another 38 messages
Learning To Iterator 2 messages
Is there an equivalent of Python's `fileinput` module in Zig? 8 messages
Standard Library New User
About tuple declarations 6 messages
How to properly parse numbers? 5 messages
What is the canonical way to read a file line by line? 24 messages
Sum a slice of u32 22 messages
Standard Library New User
Emulating cpp's template values with `comptime` fields in structs 22 messages
Is it possible to index into a string with a variable, comptime known index and an inline while loop 12 messages
Can function return multiple values? 13 messages
How can I get the maximum value in an ArrayList of integers (i32)? 12 messages
info.plist 2 messages
How do you detect an error in zig? 6 messages
General Purpose Allocator with a fixed buffer. 29 messages
print runtime string? (like command line arguements) 5 messages
Answered
WASM linear asm syntax reference? 34 messages
Answered
Does zig support setters? 3 messages
New User
How to mix `Debug` and `ReleaseFast` in one exe∕lib? 14 messages
How to diable SIMD instructions? 8 messages
addStaticLibrary() with multiple Zig source files 3 messages
Can I build some binaries using stage1 and others using stage2 in the same build.zig? 6 messages
Array access to [*c]?*anyopaque segfault on Windows 35 messages
Zig equivalent of clang -Oz optimization? 42 messages
Questions of Zigs compile time evaluation story 8 messages
How to use the zig's JSON stringify function. 47 messages
embedfile with zig run 39 messages
expected type '[]const u8', found '?[]u8' when trying to use GeneralPurposeAllocator 40 messages
Compare two values of `union(enum)` 7 messages
Why am I getting a const discard error trying to append to an optional list? 5 messages
Truncating integer to arbitrary-sized integer 3 messages
Return slice from WASM 50 messages
Multi-line string type confusion 4 messages
New User
Passing parameters to child process (converting '[][*0]const u8' to '[]const []const u8') 7 messages
Standard Library
Unable to build glibc CRT file 10 messages
Why do the `std.mem.Allocator` methods pass self by value? 11 messages
Zig using C++ with a C Interface 7 messages
How to get the type inside an optional? 2 messages
In a function, can I get the name of the calling function? 6 messages
Typeof with const values? 7 messages
New User
no field named x when there is in fact a field named x 11 messages
How do you control whether the self-hosted compiler gets used? 3 messages
New User
Why does Zig not allow for casting non-void values to void? 41 messages
Any work-arounds for creating coroutines (async) in stage2? 34 messages
Answered
Why segfault? 17 messages
How to create a slice on a sentinel terminated array 3 messages
Can you recomend YouTube full video tutorials on Zig? 9 messages
Return an optional error union type 109 messages
Compiler
bytesAsValue (array to array casting) 36 messages