From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!paganini.bofh.team!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 31 Aug 2017 10:51:19 -0500 Subject: Re: Interest in standard smart pointers for Ada 2020 Newsgroups: comp.lang.ada References: <73399847-b482-4442-a02f-1bf9c67b467b@googlegroups.com> From: Peter Chapin Date: Thu, 31 Aug 2017 11:51:18 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <73399847-b482-4442-a02f-1bf9c67b467b@googlegroups.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Message-ID: X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-X9VlWDyh/B7RQT2idiis33hhWZP6cgNJ4GQbZ6em3IC9WIEmR3sbXjLTVi/phuWHj24QmUV6k81DmQe!Z1dnxj8pI5JAAZhLGon44UgLgFt5P7sgGQHDSvyb4q85j2GWFlbYk/1VSmMavDxk4gekMBknbtQ4!Fg== 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: 1733 Xref: news.eternal-september.org comp.lang.ada:47862 Date: 2017-08-31T11:51:18-04:00 List-Id: On 2017-08-31 11:17, Lucretia wrote: > I would add auto_ptr too, I've implemented one before, although I think Block_Pointer would be a better Ada name for it. Should be limited, initialised with extended return and frees the contents at the end of the block in which it was instantiated. > FWIW, auto_ptr is depreciated in the C++ standard in favor of unique_ptr. As I understand it, there are issues in the auto_ptr interface that make it needlessly awkward. Peter