Mail Archives: djgpp/2000/09/12/05:13:42
> delete [] obj_ptr is not obsolete. It is _the_proper_ way to deallocate
> an array of objects. What is obsolete is delete [nn] obj_ptr, where
> NN would be the number of objects that were allocated for the array.
So, is the delete [] form a hint for the compiler "use vector delete, there
may be more objects", and the 'simple' delete (without []) is faster
(because it doesn't need to find out how many objects there are)?
This is the only reason I would accept the existance of these 2 forms. :)
You could also clarify me, why '==' has higher precedence than '&' (which I
find weird), but this would be totally off-topic..
--
Egon Eckert, Chance, a.s.
E-mail: egon AT chance DOT cz
- Raw text -