• Joined on 2026年04月24日
rohlem commented on issue ziglang/zig#31297 2026年06月12日 16:23:42 +02:00
address spelling errors in a disciplined manner

[This wastes computer and human resources because it takes a lot less time to solve this in bulk. I don't want to merge 1,000 PRs each fixing one word even if those 1,000 PRs are spread among...

rohlem commented on issue ziglang/zig#32099 2026年05月30日 17:59:17 +02:00
remove @TypeOf and anytype; introduce |T| syntax

[In other scenarios, the scope of captured is limited to the next expression following |captured|. If this expression is a block, then the scope is the entire block.](https://codeberg.org/zig...

rohlem commented on pull request ziglang/zig#35508 2026年05月28日 18:38:57 +02:00
In Allocator, set bytes to undefined in destroy()

This is a compile-error if a pointer-to-const *const T is passed as an argument (which previously both free and destroy support).

rohlem commented on pull request ziglang/zig#35428 2026年05月23日 15:12:16 +02:00
zig build: separate the maker process from the configurer process

@bfredl I think the reasoning here would be the same as for the compiler runtime and other subcommands like zig cc, zig libc, zig objcopy etc. being compiled on-demand instead of included in...

rohlem commented on issue ziglang/zig#35346 2026年05月19日 01:37:04 +02:00
Unexpected asBytes behavior for nonstandard unsigned ints

As you've found out, @sizeOf returns the backing size in bytes, which the compiler (for the target you've picked) chooses as 4 bytes for u24.

rohlem commented on pull request ziglang/zig#35217 2026年05月05日 19:07:01 +02:00
std: fix: add Io interface parameter to getUserInfo() (#35214)

I have not built and tested with the changes, though trivial.

rohlem commented on issue ziglang/zig#32133 2026年04月30日 06:36:00 +02:00
zig 0.16.0 translate-c fails when given -target

Changing build.zig to specify additional directories as a work around does not work either

rohlem commented on issue ziglang/zig#32124 2026年04月29日 11:45:57 +02:00
segfault when entering main

I've experienced some runtime errors (I think they were segmentation faults) yielding the wrong stack level (one below where they occured) previously.

rohlem commented on issue ziglang/zig#32109 2026年04月29日 06:43:07 +02:00
Bad error message when an if after else is missing

For clarification, I think the compiler currently interprets this as an initializer, as if:

rohlem commented on issue ziglang/zig#32119 2026年04月29日 06:29:44 +02:00
Make the @compileError builtin variadic

The status-quo solution I reach for is the following helper function:

rohlem commented on issue ziglang/zig#32099 2026年04月28日 02:40:01 +02:00
remove @TypeOf and anytype; introduce |T| syntax

In addition to const tmp: |X| = x; _ = tmp;,

rohlem commented on issue ziglang/zig#32080 2026年04月27日 08:56:08 +02:00
@alignOf for all the types

@Fri3dNstuff Ah, that makes sense, thank you for the clarification!

rohlem commented on issue ziglang/zig#32080 2026年04月26日 11:09:30 +02:00
@alignOf for all the types

In my opinion noreturn-like (uninstantiable) types usually require some kind of special casing:

rohlem commented on issue ziglang/zig#32045 2026年04月24日 02:10:43 +02:00
Remove comptime fields from the language

I personally have used both @call and std.fmt with comptime (fields in the tuple) arguments before, and would be slightly annoyed by their direct removal without replacement.