Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 01 Jun 2011 16:58:20 -0500 From: Pete Becker Organization: Roundhouse Consulting, Ltd. Newsgroups: comp.lang.c++ Date: Wed, 1 Jun 2011 11:58:21 -1000 Message-ID: <2011060111582146590-pete@versatilecodingcom> References: <2dyFp.31748$Tw4.2327@newsfe26.ams2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Problem with array objects User-Agent: Unison/2.1.4 Lines: 22 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-3F6RHzzUCiyco+Cd5lNjz+h6KNzq3NHViDqwaTvx89+hNyktf8CGUWZx2muR/CC8ZMoEI56daCkAuv2!Iz46MO2/c76oaJEcvtrLDYKRLElYZV2QAMXtWh6QWb9dBg/l/WE8ncddSkq7a//MM1I2fVk= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1791 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:6029 On 2011-06-01 11:31:35 -1000, Paul said: > "Pete Becker" wrote in message > news:2011060110090311350-pete@versatilecodingcom... >>> >>> For example: >>> int* p = new int[100]; >> >> Creates an object of type array of 100 int, converts it to type int*, >> and stores the result in p. > > Ok this is interesting, so an object of array type is created but its > must be a temporary. No, it's not a temporary. It's an object with dynamic storage duration. -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)