zig
zig copied to clipboard
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
libclang has FIXME code preventing us from translating this: ```zig static const int array[2] = {1, 2}; ``` https://github.com/llvm-mirror/clang/blob/4a2d14aa185909c633da175343bc74fd978e3bfd/lib/AST/ExprConstant.cpp#L10133
### Zig Version 0.11.0 ### Steps to Reproduce and Observed Behavior ``` const std = @import("std"); const mem = std.mem; pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; const...
See the added test case for an example of what this fixes. Previously, if you had a pointer to multiple array elements and tried to write to it at comptime,...
Offer a correct explicit coercion syntax to help the user avoid other footgunnable workarounds when they encounter this error. Arguably, there's no need for this if we allowed explicit coercion...
https://9p.io/plan9/
Document current status of exports and intended design being inspired by Integer Operations.
### Zig Version zig 0.11.0-dev.1845+e0d390463 ### Steps to Reproduce and Observed Behavior - git clone https://github.com/nektro/temp_build_crash - zig build ``` thread 1399563 panic: reached unreachable code /home/meghan/src/zig/src/Module.zig:2287:26: 0xab2e04 in span...
### Zig Version 0.11.0-dev.1836+28364166e ### Steps to Reproduce and Observed Output This suggestion is similar to https://github.com/ziglang/zig/pull/12807 but goes a bit further: While the example from that pull requests yields...
### Zig Version 0.11.0-dev.1838+3a73216b1 ### Steps to Reproduce and Observed Behavior Compile this code (which is incorrectly using `@as` when it should be `@intCast`): ``` pub fn main() !void {...
The following example segfaults during compilation on both 0.7.0 and master. ```zig pub fn main() !void { var foo = "a"; switch (foo) { "a" => {}, "b" => {},...