Closed karl-zylinski closed 2 weeks ago
I guess if one wanted to take this further and make it even clearer, then we could also rename Arena
in base:runtime
to Temp_Arena
etc. I can do that if it's seen as a good idea.
That would lessen the "jump to symbol" confusion with there being 3 different Arena
in base
and core
.
This PR clarifies that the arena in
base:runtime
shouldn't be used for anything but the default temp allocator. This is done by:default_allocators_arena.odin => default_temp_allocator_arena.odin
Arena :: struct {
.This should avoid some confusion where people end up using the Arena in
base:runtime
because they thought it was the 'default arena', as the old file namedefault_allocators_arena.odin
might have lured them into believing.