finally found the time to try this, with some interesting results:
- your code works as-is with zig 0.11
- with zig 0.12-dev, I need to use
fn get(self: *ToyStr) []const u8 { ...
- that works as far as I can tell (debug, safe and fast mode tested)
- with zig 0.12-dev, if I replace the pointer to self with self only,
fn get(self: ToyStr) []u8 { ...
, this does not work - why ?