Getting the following error
/home/sattva/Git/zig-linux-x86_64-0.14.0-dev.1472+3929cac15/lib/std/meta.zig:24:21: error: access of union field 'enum' while field 'union' is active
if (@typeInfo(T).@"enum".fields.len <= 100) {
~~~~~~~~~~~~^~~~~~~~
/home/sattva/Git/zig-linux-x86_64-0.14.0-dev.1472+3929cac15/lib/std/builtin.zig:257:18: note: union declared here
pub const Type = union(enum) {
trying to use the meta method:
// Conver Simobject enum to a string for lookup
const str_enum = std.meta.stringToEnum(sim.SimObject, obj_name) orelse {
errdefer std.log.err("Object [{s}] was unable to be created, is it a valid SimObject?", .{obj_name});
return errors.JsonMissingGroup;
};
// Init specific objects, as a sim object interface
switch (str_enum) {
ect....