Manually-allocated memory and maximum array capacity

bearophile bearophileHUGS at lycos.com
Fri Apr 4 16:28:01 PDT 2014


Joseph Rushton Wakeling:

> Question: is there a comparable phenomenon for memory that is 
> manually allocated using malloc?

Manually allocated memory can over-allocate, but not 
geometrically as arrays do.

Take a look at the difference between core.memory.extend and 
core.memory.realloc.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list