home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!usc!sdd.hp.com!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Subject: Re: Renew? And MOVE constructor/destructor.
- Message-ID: <1992Jul28.181614.22591@ucc.su.OZ.AU>
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: extro.ucc.su.oz.au
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- References: <1992Jul4.173316.11890@taumet.com> <1992Jul5.002414.390@frumious.uucp> <THOTH.92Jul25110048@wave.cis.ufl.edu>
- Date: Tue, 28 Jul 1992 18:16:14 GMT
- Lines: 21
-
- In article <THOTH.92Jul25110048@wave.cis.ufl.edu> thoth@wave.cis.ufl.edu (Robert Forsman) writes:
- >
- > Why not have ANOTHER special method (in addition to copy
- >construction, deletion and assignment) which is only called when an
- >object is being MOVED from one memory location to another? (please
- >note that I am not overjoyed at the idea of another special operator.
- >I merely expect that the default will work fine for everything I do.)
-
- Very interesting idea.
-
- Assignment is like destroy destination followed by copy.
- Move would be like then destroying the source.
-
- Apart from 'renew', where and how would it be used?
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-