Quote:
Originally Posted by Loriel
The anytype[] classes in Java are not meant to be actually used as arrays. They are primarily meant to implement array classes, and to provide some lowlevel aggregate data structure.
C++ arrays are as unresizable as Java arrays.
|
What's fun in C++ though, is that you can override the [] operator with classes so you can make a list class that uses the the [] for indicating index, and then add or remove from the list and the size auto adjusts... fun.