#growing an array of strings on comptime
1 messages · Page 1 of 1 (latest)
bottom one needs & too
src/core/init.zig:271:58: error: expected indexable; found '*const struct { comptime [:0]const u8 = "DownUp"[0..6] }'
field_names = field_names ++ &.{field.name};
&[_][]const u8{
like this?
src/core/init.zig:271:55: error: expected type '[][]const u8', found '*const [1][]const u8'
field_names = field_names ++ &[_][]const u8{field.name};
(0.15.2, idk if it matters)
lemme find some code, i do this pattern
ah try making field_names []const []const u8
worked