by cafxx · 11mo ago · 0 comments
A word of caution. If you do this and then you store pointers into that slice, the GC will likely not see them (as if you were just storing them as `uintptr`s)
No out pointers. If you can do that, you're fine.
If you really store just references to the same arena, better to use an offset from the start of the arena. Then it does not matter whether allocations are moved around.