zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
### Zig Version 0.10.0-dev.3351+90f23e131 ### Steps to Reproduce ```zig fn foo() void { var x: u32 = 1; var y = .{ x, x + 1 }; y = .{...
### Zig Version 0.10.0-dev.3363+0fc79d602 ### Steps to Reproduce ```zig fn pair(x: f32, y: f32) std.meta.Tuple(&.{f32, f32}) { return .{ x, y }; } fn foo(_: anytype) void {} test {...
Dwarf FORM types strx1, strx2, strx3 and strx4 are now handled. This (for me) fixes #12120 However, I'm unsure if `getStringOffset` is correct as I'm unsure how to test it....
WIP
## Motivation Result Location Semantics have three core goals in Zig 1. to allow returning large structs without a large perf cost 2. to allow async frames to be composed...
At the moment, asm blocks that do not use the (-> Type) return value mechanism use indirect register constraints for output values. This is a surprising behavior which is causing...
In theory we could sometimes take advantage of SIGFPE for our integer division by zero safety check: ``` test "integer division by zero" { @setRuntimeSafety(false); var x: i32 = 10;...
Just a small thing I found I could do. # Before  # After 
### Zig Version 0.10.0-dev.3361+c650ccfca ### Steps to Reproduce Run the following with `zig test -fno-stage1` ```zig test { const Int = @Type(.{ .Int = .{ .signedness = .unsigned, .bits =...
``` var foo: u32 = 0; var bar: u8 = 1; foo = bar