Resizable Arrays?

Jason House jason.james.house at gmail.com
Fri Feb 27 15:55:44 PST 2009


Are there any good reasons to allow built in arrays to be resizable?

There's already plenty of empirical evidence that building arrays by appending is incredibly slow.

There are also bugs in bugzilla where resizing arrays after assigning one array to another violates type safety. Those bugs can be solved by always reallocatimg arrays when resizing, but that makes performance even worse...

While not much of an argument, C# also prevents array resizing.

Is it time to rely on standard libraries for data structures and let built in arrays be fixed length? It's a breaking change... 



More information about the Digitalmars-d mailing list