What is the problem of the program? It looks like a bug to me

const std = @import("std");

pub fn main() void {
	std.debug.print("{}\n", .{@TypeOf(byteProperties)});
}

const Properties = packed struct {
    isSpace: bool = false,
};

pub const byteProperties = blk: {
    var table = .{Properties{}} ** 256;
    table[0].isSpace = true; // error: value stored in comptime field does not match the default value of the field
    break :blk table;
};

zig version : 0.14.0-dev.1951+857383689

Okay, it compiles after changing the declartion line to

var table = [1]Properties{.{}} ** 256;

I’m still not quite familiar with zig yet. :smiley: