#Unable to evaluate comptime expression

1 messages · Page 1 of 1 (latest)

wide sigil
#

The error returned in main.zig at

    move.move_list[1]{
        //
    };

move_list was defined like this pub var move_list: [256]Move = undefined; where Move is a packed struct.

I don't understand what's going wrong here at all, would be very thankful if someone can explain this error as well. 🙏

hexed musk
#

are you trying to assign the fields in move_list[1]?

wide sigil
#

yes

hexed musk
#

move.move_list[1] = .{

#

thats an unfortunate error message

wide sigil
#

thanks, it's working now