new T[size] vs .reserve

Namespace rswhite4 at googlemail.com
Sat Feb 2 09:40:44 PST 2013


No one said that this is a problem, or? (;
But why should I generate an array with size 4 if an append of me 
resize it to 5?

I'm asking because we have currently nothing (nice) for _fixed_ 
size arrays at runtime. That should be change. Therefore new 
T[size] would be a good.


More information about the Digitalmars-d-learn mailing list