zig-help

21196 threads · Page 398 of 424

is there a way to get a `c.FILE` from a `fs.File`? 4 messages
Standard Library
Are there known issues with recursion in Zig 0.10.0? 42 messages
Answered
conditional compilation of functions 57 messages
std.sort.sort with custom comparator causing integer overflows 7 messages
Standard Library Answered
Is it safe to return the address of a local comptime variable? 6 messages
Build from source - How to use `Option B` (existing zig) with zig from `Option A` (bootstrap) 3 messages
Zig is slower than C writting bytes to a file 13 messages
CMake Error at cmakeFindllvm.cmake27 (message) expected LLVM 15.x but found 13.0.1 using 5 messages
Compiler New User Answered
linking libgccjit results in error 7 messages
slice syntax isn't slicing 23 messages
How to properly deinitialize ArrayList? 5 messages
Finding TypeOf extern struct field 17 messages
Answered
how to change state in union with out loose or rewrite data 6 messages
Build times on 0.10 is this normal? 13 messages
New User
Large integer type completeness 6 messages
how do you all get around not being able to switch on strings? 106 messages
unable to evaluate constant expression 27 messages
Answered
Is there an easier or cleaner way to do this? 52 messages
anyopaque ptrCast changing buffer contents 36 messages
Answered
[windows] Where does zig get system libraries (User32, etc.) from? 4 messages
Access union value at comptime with a comptime tag value 4 messages
print without all the 0 in the buffer 18 messages
How does path.isAbsolute work? 2 messages
Index OOB only in debug 7 messages
Answered
How to annotate errors? 49 messages
Answered
Recommended http? 2 messages
Standard Library New User
Zig learning material 5 messages
How much less efficient is it to return an array on the stack? 40 messages
Why the lines in ArrayList are broken when I try to print it? Wrong memory allocation. 26 messages
Standard Library New User
what does the context in std.sort.sort() mean? 19 messages
Answered
How to pull comptime value off of type 2 messages
Answered
Is there a way in a loop enumerate an array or slice? 4 messages
find length of line of string at comptime 2 messages
allocator.alloc(custom_type, n) OutOfMemory error 11 messages
Answered
multiline string literals breaking 17 messages
`zig build` fails with exit code 5 (no messages) 2 messages
Compiler
std.meta.FnPtr no longer exists, how to replace it? 3 messages
Standard Library
zig cc produces huge binaries 34 messages
Answered
issue no. 12886 Need help. 7 messages
inline `comptime` block and return from it 4 messages
How to use anything that requires an `Allocator` during `comptime` 2 messages
Find older help posts 2 messages
Set the output filename with `zig build-exe` 3 messages
Compiler New User
Strings in WASM -- JS to Zig and Zig to JS 47 messages
Problems with translate-c using glew 4 messages
Compiler
pass functions around 2 messages
Bug or UB -- passing a pointer to an ArrayList vs passing its item slice 10 messages
anyopaque alignment change 5 messages
Is there something like lambda or anonymous functions? 11 messages
Is there any harm in destructuring assignment? 2 messages
New User