Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #15478
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | jt@toerring.de (Jens Thoms Toerring) |
| Newsgroups | comp.lang.c++ |
| Subject | Re: Is this ok to do? |
| Date | 19 Apr 2012 20:21:06 GMT |
| Organization | Freie Universitaet Berlin |
| Lines | 20 |
| Message-ID | <9vbadiFfqbU2@mid.uni-berlin.de> (permalink) |
| References | <9vb7llFfqbU1@mid.uni-berlin.de> <4f906f1c$0$6564$9b4e6d93@newsspool4.arcor-online.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de NtQyaNQ+VVErbSa9Wf0KnAgL39w2gWF8JUmFEaBl+ERm4x |
| X-Orig-Path | not-for-mail |
| User-Agent | tin/1.9.3-20080506 ("Dalintober") (UNIX) (Linux/2.6.30-1-amd64 (x86_64)) |
| Xref | csiph.com comp.lang.c++:15478 |
Show key headers only | View raw
Marcel Müller <news.5.maazl@spamgourmet.com> wrote:
> On 19.04.2012 21:34, Jens Thoms Toerring wrote:
> > I have a method in a class A that calls a method of another class
> > B that in turn deletes the instance of class A from which it was
> > called (the B instance "owns" the instance of A and created it
> > calling 'new'). This feels a bit wrong since when the call of B's
> > method returns the instance of A has already ceased to exist.
> Seek for "delete this", which is basically the same.
> E.g.
> http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.15
Thank you, that's reassuring, as far as I can see all the points
mentioned there seem to be satisfied.
Best regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is this ok to do? jt@toerring.de (Jens Thoms Toerring) - 2012-04-19 19:34 +0000
Re: Is this ok to do? Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-04-19 22:01 +0200
Re: Is this ok to do? jt@toerring.de (Jens Thoms Toerring) - 2012-04-19 20:21 +0000
Re: Is this ok to do? Juha Nieminen <nospam@thanks.invalid> - 2012-04-20 06:17 +0000
Re: Is this ok to do? Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-04-20 13:20 +0200
Re: Is this ok to do? jt@toerring.de (Jens Thoms Toerring) - 2012-04-20 17:00 +0000
csiph-web