Minor confusion in array new language
Mark Mitchell
mark at codesourcery.com
Wed Jun 28 23:02:37 UTC 2000
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 at codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the cxx-abi-dev
mailing list