|
|
|
|
|
by AnIdiotOnTheNet
2802 days ago
|
|
> Not sure what you mean. The elements of an ArrayList(ArrayList(i32)) are ArrayList(i32)s. I believe what he was wasking was "given an ArrayList(i32), how would you expect it to call deinit on the member i32s?". The answer, of course, is that you don't, which is also true of ArrayList(ArrayList(i32)). ArrayList absolutely supports heap-allocated types, you just have to free them yourself before calling deinit() on the ArrayList itself. |
|