Minor confusion in array new language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minor confusion in array new language



	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