From 8677532976723014440
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,64409d9769f709f0
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,64409d9769f709f0
X-Google-Attributes: gidf78e5,public
From: Pete Becker <petebecker@acm.org>
Subject: Re: Is this legal C++?
Date: 1998/08/07
Message-ID: <35CB8677.ADAED7F1@acm.org>#1/1
X-Deja-AN: 378997246
X-NNTP-Posting-Host: petebecker.ne.mediaone.net
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <01bdc100$f82d21b0$19011a12@bwing> <01bdc170$c51f6970$17031712@dialup-337> <35CA1929.64D06555@acm.org> <35CA2B19.15FB@wizard.net>
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: MediaOne -=- Northeast Region
Mime-Version: 1.0
Newsgroups: comp.lang.c++,comp.std.c++
Originator: clamage@taumet

The question wasn't about how to convert uninitialized memory to an
object, but how to reinitialize an object that has already been
constructed (although apparently incorrectly). That sounds like a silly
distinction, but it's important: if you need to initialize uninitialized
memory, as you say, there are may ways to do it. If you want to change
an already existing object you are limited to using member functions.
C++ tries its best to make it difficult to invoke constructors on
objects that have already been constructed.

-- 
Pete Becker
Dinkumware, Ltd.
http://www.dinkumware.com


[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




