bit of "backstory":
i'm trying something i've never tried before, making something like a "compressor" of strings. not using any algorithm or anything (yet), just using less bits by only storing only the characters used at compile time
i.e if a string contains "hello world" and another contains "bello world" then the characters stored in constant memory would be h,e,l,o,w,r,d,b and they would be "decompressed" at runtime (if needed to be in u8 ascii format), resulting in the characters being only 3 bits each instead of 8 and "expanded" to their original value on the stack
bit of a useless project and the code has plenty of issues already, but it doesn't really matter, just something i'm doing for practice to learn more about memory, stack, and zig in general. issues will be ironed out after i have a basic concept going
now the problem: in the first picture, you can see what my root.zig looks like. at the top of the comptimeCompress function, you can spot a variable which has a signature of rs var out: [text.len]CompressedCharacter = undefined;
when trying to write to this variable later however (2nd pic), instead of being given the fields of the struct CompressedCharacter, i'm given the fields of the enum compressed_character... am i missing something or is this really bizarre behavior?