From -4705018503612373178
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,6d43dabd81d37c8e
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-01-26 12:06:37 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: danielgutson@hotmail.com (danielgutson@hotmail.com)
Newsgroups: comp.std.c++
Subject: Re: suggestions: about constructors and destructors
Date: Sun, 26 Jan 2003 20:06:33 +0000 (UTC)
Organization: http://groups.google.com/
Lines: 21
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <23478c42.0301260112.24c5e6c4@posting.google.com>
References: <23478c42.0301230926.39a6959c@posting.google.com> <7f2735a5.0301241511.20024ed6@posting.google.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: mail2news.demon.co.uk 1043611593 21918 10.0.0.1 (26 Jan 2003 20:06:33 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Sun, 26 Jan 2003 20:06:33 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18ct31-0005hM-00
	for mail2news@news.news.demon.net; Sun, 26 Jan 2003 20:06:31 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id HAA01849; Mon, 27 Jan 2003 07:06:23 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ncar.ucar.edu
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: 26 Jan 2003 09:12:48 GMT
X-Spam-Status: No, hits=-8.6 required=5.0
	tests=FORGED_HOTMAIL_RCVD,NOSPAM_INC,QUOTED_EMAIL_TEXT,
	      REFERENCES,SPAM_PHRASE_01_02
	version=2.41
Xref: archiver1.google.com comp.std.c++:17533

allan_w@my-dejanews.com (Allan W) wrote in message news:<7f2735a5.0301241511.20024ed6@posting.google.com>...
[...]
> >           S* p = new S;
> >           delete p(1);   //ok
> >      }
> 
> Same, except you'd use p.destroy(1) at the end instead of delete p(1).
> Besides -- what happens if S defines operator()? Your statement above
> would call operator(), and delete whatever it returns...

I realized later about this: it's not applicable since p is a pointer,
and has no operator () defined.

 Daniel.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



