> I'd like to use an arena allocator to allocate ref object s (for spatial 
> locality)

Nim's allocator already understands the importance of "spacial locality".

> but I lose the ability to that with library types.

Yes indeed. It also does not matter. The parts of the stdlib that allocate 
heavily don't work well with the idea of a bulk free operation anyway. Been 
there, done that.

Reply via email to