List pools
Static lists are cool, but they are very limited expressiveness wise because they must be known at compile time
Pools fix this by having a pool of static lists that the user code can allocate at any time
PooledList a = allocate();
But because the pool is limited, the pooled list must be freed when not needed, the garbage collector will not handle it(yet)
a.free();
Other than that, the PooledList behaves just like a List and can do almost anything a List does
- I also added proper documentation for
Out of memoryerrors.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.