Zig NEWS

Discussion on: Zig Union(Enum) -- WTF is switch(union(enum))

Collapse
 
edyu profile image
Ed Yu

FYI, the new 0.11 changed @intToEnum() to @enumFromInt(), and instead of @intToEmum(), you need to use @as(your_enum, @enumFromInt(some_int)).