Minor confusion in array new language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor confusion in array new language
- To: cxx-abi@xxxxxxxxxxxxxxxxxxxx
- Subject: Minor confusion in array new language
- From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2000 16:02:37 -0700
When operator new is used to create a new dynamic-length
array, a cookie is usually stored to remember the allocated
length (number of array elements) so that it can be
deallocated correctly.
It doesn't matter whether or not the number of array elements is known
at compile-time; the choice of whether or not you need a cookie is
independent of this fact. So, that should just be "used to create a
new array".
Thanks,
--
Mark Mitchell mark@xxxxxxxxxxxxxxxx
CodeSourcery, LLC http://www.codesourcery.com