zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.10.0-dev.3313+cff5d9c80 ### Steps to Reproduce ```zig const std = @import("std"); const T = std.meta.Tuple(&.{u8}); pub fn main() void { foo(.{123}); } pub fn foo(x: T) void {...
### Zig Version 0.9.1 ### Steps to Reproduce Consider ```c // main.c void* wat() { int x = 123; return &x; } int main() { int** x = (int **)...
### Zig Version 0.10.0-dev.2981+7090f0471 ### Steps to Reproduce ```zig const std = @import("std"); test { const allocator = std.testing.allocator; var list = std.ArrayList(u8).init(allocator); _ = list.writer(); _ = list.reader(); }...
### Zig Version 0.9.1 ### Steps to Reproduce Hello, is there a formatted input function in the standard library ? Example in C: #include int main(void) { unsigned int age;...
### Zig Version 0.10.0-dev.3007+6ba2fb3db ### Steps to Reproduce execute these code on macos 12.4(21F79)on M1 mac. ``` zig pub fn main() void { const value = @Vector(2, bool){ true, true...
A lot of exhaustive enums don't use up the full number of options for their storage class, thus they have leftover bits or values. We can take advantage of these...
### Zig Version 0.10.0-dev.3071+8e75ba653 ### Steps to Reproduce Create a project with `zig init-exe` and modify `main.zig` to contain the following code. ```zig const a = @import("a.zig"); comptime { _...
### Zig Version 0.10.0-dev.3355+dfc7493dc ### Steps to Reproduce The below code compiles and runs as expected on stage1, however the build fails on stage2: ```zig const std = @import("std"); pub...
I have a partial implementation in Zig of a personal finance manager that I abandoned because of issues with Zig (which, by the way, I completely understand; Zig has not...
### Zig Version 0.10.0-dev.3315+1a16b7214 ### Steps to Reproduce ```zig pub fn foo() !void { try return bar(); } pub fn bar() !void { } ``` which could result in multiple...