zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
fixes #18621 also rename mingwex to mingw32, which feels more appropriate as it contains the basic C runtime code
### Zig Version 0.12.0-dev.3428+d8bb139da ### Steps to Reproduce and Observed Behavior ```zig const std = @import("std"); pub fn main() !void { const S = union(enum) { a: i16 align(1), b:...
### Zig Version 0.12.0-dev.3419+a2651cbc8 ### Steps to Reproduce and Observed Behavior `zig test -femit-docs any_file.zig` serve the docs with e.g. `python -m http.server` instead of the users code a file...
### Zig Version 0.12.0-dev.3419+a2651cbc8 ### Steps to Reproduce and Observed Behavior ```zig test { _ = @as([1]u32, @bitCast([_]comptime_int{0})); } ``` this segfaults the compiler, it seems like any comptime only...
### Zig Version 0.12.0-dev.3405+31791ae15 ### Steps to Reproduce and Observed Behavior I'm updating my [fork](https://github.com/DanikVitek/zitertools/tree/zig-master) of the `zitertools` library to work with the latest nightly zig and after cleaning up...
### Zig Version 0.12.0-dev.3412+54c08579e ### Steps to Reproduce and Observed Behavior This code has the wrong error message: ```zig const std = @import("std"); pub fn main() void { // This...
Noticed several instances of the same typo. In most other places it's correctly 'ensure', just not here.
### Zig Version 0.12.0-dev.1773+8a8fd47d21 ### Steps to Reproduce and Observed Behavior use this [build script](https://github.com/ognevnydemon/MINGW-packages/blob/zig-comeback/mingw-w64-zig/PKGBUILD) and run `makepkg-mingw -s`. succesfull build is excepted ### Expected Behavior ``` ld.lld: error: undefined...
This function is not portable, relies on a legacy permissions model, cannot handle arbitrarily nested file system paths, and is therefore typically a bug to call. Yet, many programmers reach...
### Background In status-quo, `packed struct` and `packed union` types are guaranteed to occupy the minimum number of bits required. For `packed struct` this is the sum of the number...