i feel like there's an easy way to do this that i'm totally missing right now:
const Foo = struct {
array: [5]u8,
};
comptime {
@compileLog(Foo.array.len);
}
errors with:
error: struct 'Foo' has no member named 'array'
@compileLog(Foo.array.len);
~~~^~~~~~
I can get it working with
@typeInfo(std.meta.FieldType(Foo, .array)).Array.len
but i feel like there's probably a simple way to go about this