Veikka Tuominen
Veikka Tuominen
> Is there any other effort trying to implement this? No effort has been made since this proposal has not been accepted and any work on it would likely end...
Should be as easy as removing `handle` from the function type.
Reduction: ```zig test { std.debug.print("{*}\n", .{foo()}); } fn foo() []void { const ptr: [*]void = undefined; var len: usize = 6; return ptr[0..len]; } ```
The CI might get fixed by rebasing on master.
I don't know if it matters but this happens on a Zig binary built without stage1.
Mine is pretty much the same except that `--search-prefix` points at `zig-bootstrap/out/native-linux-gnu-native/`
It seems to work properly on a zig binary built by cmake and a release zig binary built by the cmake zig but not on a debug Zig built by...
This is caused by passing native to `build`, I think it should either resolve to the canonical value or be disallowed entirely.
I think the best way `extern enum` can work is @SpexGuy's second option with integer operations and exhaustive enums. Pros: - Type safety of Zig enums. If you want to...
> I think the best way `extern enum` can work is ... Implemented here https://github.com/Vexu/zig/commit/7353e1798f6aca80194276dd335d5225d40f76d2 for reference.