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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Introductory Presentations, especially aimed at C++ programmers! Date: Fri, 9 Dec 2016 12:58:57 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <1905815374.502825168.454102.laguest-archeia.com@nntp.aioe.org> <87y3zq4t05.fsf@nightsong.com> <0ad2eb12-421f-4159-8df2-5bf7e0dddf06@googlegroups.com> <87mvg551pi.fsf@nightsong.com> <87d1h14gyg.fsf@nightsong.com> <878trp4fm8.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 9 Dec 2016 19:57:38 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="55132178a71021b7c7c45699e701f7c3"; logging-data="22109"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qJ7NjPCen5xXRsn32dcu5hM/fXm7MER0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 In-Reply-To: Cancel-Lock: sha1:Nep1xEbaF39ZY4JoODajuzqWtc0= Xref: news.eternal-september.org comp.lang.ada:32701 Date: 2016-12-09T12:58:57-07:00 List-Id: On 12/09/2016 03:49 AM, J-P. Rosen wrote: > Le 09/12/2016 à 10:27, Paul Rubin a écrit : >> "J-P. Rosen" writes: >>> Unbounded_Strings are controlled types that perform automatic >>> reclamation, the user doesn't have to worry. >> >> You mean they're reclaimed when the scope exits, something like C++? >> That's good to know. >> > Yes. They are implemented with hidden pointers, with automatic > reclaimation when assigned or going out of scope. This is almost the > canonical example of using controlled types. > > You should have a look at controlled types, especially if you miss C++ > destructors ;-) And this has been around since Ada 95. -- Jeff Carter "If you don't get the President of the United States on that phone, ... you're going to have to answer to the Coca-Cola Company." Dr. Strangelove 32