Closed spencersalazar closed 10 years ago
For what it is worth, I use a.size(0);
instead of a.clear();
https://github.com/heuermh/lick/blob/master/ArrayList.ck#L37
Ah yes, thanks for pointing that out -- thats what I do to and it works well. I suppose the bug in this case is more that the intended functionality and purpose of array.clear() is, well, unclear.
The following code:
prints: 3 :(int) 3 :(int)
shouldnt clear() completely empty the array?