stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

2h 33m 23s logged

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 memory errors.
0
39

Comments 0

No comments yet. Be the first!