Resizable Arrays?

bearophile bearophileHUGS at lycos.com
Sat Feb 28 22:37:00 PST 2009


Jason House>By dynamic, do you mean no length as part of the type or resizable in place? Array resizing can lead to hidden allocations,<

Thy aren't hidden: when you grow a dynamic array you know an allocation generally takes place. If you don't want reallocations, then never grow or join them, and the reallocations will not happen. There's nothing hidden.

Bye,
bearophile



More information about the Digitalmars-d mailing list