[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about top



On Thu, 2 Aug 2001, Miki Shapiro wrote:

> I don't know how relevant this is, but I encountered another prob a few
> days back when doing delete [] pObject instead of delete pObject worked
> fine on Win32 but segfaulted on Linux. doesn't seem relevant but what the
> hell..

always, and i do mean always, use the correct form of delete. the
standard does not guarantee anything if you use the incorrect form - the
effect is implementation specific and *undefined*, even if your array
if of primitive types that do not have destructors defined (like
char[]).

we know what happens to people whose code relies on implementation
specific, undefined behaviour, don't we?
-- 
mulix
http://www.advogato.com/person/mulix

linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il