New to Zig and loving it so far!
If I run the below I have the offset of b reported as 0, whereas if I change a to u32 it reports 4. Is the 0 expected response?
Interestingly @sizeOf correctly reports 8 in both cases.
const std = @import("std");
const Thing = struct { a: [4]u8, b: u32 };
pub fn main() void {
std.debug.print(
"Size is {} and offset of b is: {})",
.{ @sizeOf(Thing), @offsetOf(Thing, "b") },
);
}