Zig Zaggin'

from blog Register Spill, | ↗ original
Here’s a very interesting bit of Zig that I came across again this week: @fieldParentPtr. It’s a prism through which you can see a lot of Zig’s character. That’s not what the official docs say, of course. They say that @fieldParentPtr: Given a pointer to a field, returns the base pointer of a struct.