zig-help

21196 threads · Page 347 of 424

Yet another post about building Zig. 9 messages
Answered
Default value of &.{} when reifying a type with slice field errors about well-defined layout 15 messages
Answered
string to comptime_int ? 3 messages
Building an array at comptime 55 messages
Answered
simple mmap on mac 2 messages
Answered
Loop through multiple lists like python's zip? 3 messages
Well-formed for comptime deference? 4 messages
Compiler 0.13.x
Using most significant bit of a pointer as flag 15 messages
Invalid builtin function @intToPtr, @enumToInt 7 messages
Compiler Answered 0.13.x
atoi or itoa 3 messages
Zig app self update 5 messages
Integer part of floating point value out of bounds 2 messages
c library: call to undeclared function problem 6 messages
reallocate struct member 14 messages
Using zig cc in CMake for cross-compilation 8 messages
zig fmt skip comment 3 messages
Answered
Accessing include path of ConfigHeader step during build 4 messages
What is the difference between &ref of type REF and @ptrCast([*]const REF, &ref)? 3 messages
extern struct bitfields? 15 messages
Using Windows API without const std = @import("std"); const w = std.os.windows; 10 messages
properly deinit std.StringHashMap 2 messages
Standard Library Answered 0.13.x
Converting from allocPrint() slice to c_string different from comptime []const u8 3 messages
New User Answered 0.13.x
streamUntilDelimiter does not work with FixedBufferStream 7 messages
Standard Library 0.13.x
c pointer 5 messages
Answered
json parsing with arbitrary keys 3 messages
Getting from [*]const u8 + len to []const u8 3 messages
Functions returning extern structs and using std.mem.zeroes segfault compiler 14 messages
Standard Library Compiler Answered 0.13.x
String as std.io.writer 6 messages
Parsing error 37 messages
Answered
getting pointer of some type from []u8 9 messages
Answered
Is it normal to have 3+ minute build times with only sdl on release mode? 65 messages
anonymous struct literal with a function 17 messages
Error trying to pass strings to a function 4 messages
New User Answered
What are the dots `.` 11 messages
Segmentation fault while using shared library 16 messages
0.10.x New User
How can I add target at build.zig 5 messages
How can I reinterpret a `[]u8` as a `[]T` when T has a different alignment than u8? 30 messages
comptime_int depends on runtime control flow: switch within while loop 6 messages
Answered
What types of errors are available, and is it possible to create custom errors? 4 messages
Answered New User 0.13.x
Is there any plans for an official package manager? 2 messages
New User 0.13.x
Vector(4, f32) from [*]f32 3 messages
use range inside if condition 8 messages
Netlink socket problem 4 messages
Standard Library New User 0.13.x
Creating a public module that depends on C code 2 messages
-mword-relocations support in Zig 4 messages
dupe out of std.ArrayList? Or shrink? 15 messages
Build.addSharedLibrary()/exe.linkLibrary() vs exe/addLibraryPath/exe.linkSystemLibraryName() 9 messages
New User Compiler Answered 0.13.x
Is "comptime" necessary here? 8 messages
Linking a shared library 7 messages
Compiler Answered 0.13.x
return `*` vs `const *` depending on the argument's const-ness 7 messages