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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,419864ed91cc937d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: Re: heap size exceeded for large matrices Date: Tue, 31 Aug 2010 17:56:14 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <14007b1b-c290-4c73-a0ec-d3c5195b83d4@t20g2000yqa.googlegroups.com> <4c7a360b$0$10227$ba4acef3@reader.news.orange.fr> <340c87af-1f15-4590-baa9-ec7e864b7048@l20g2000yqm.googlegroups.com> <4c7ada3c$0$2372$4d3efbfe@news.sover.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Tue, 31 Aug 2010 17:56:14 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="Mda950WjNwNLAFOE7yJXQw"; logging-data="16971"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hhTVknp81RVL1a7YqCW/J" User-Agent: slrn/0.9.9p1 (FreeBSD) Cancel-Lock: sha1:Pqv+uAfmxQxKZeCGagK8l2avPGA= Xref: g2news1.google.com comp.lang.ada:13881 Date: 2010-08-31T17:56:14+00:00 List-Id: On 2010-08-30, Simon Wright wrote: > Natasha Kerensikova writes: > >> Are there some facilities like C++'s auto_ptr (i.e. containers that >> behaves like pointers but with a reference counter, so that when the >> last container is finalized the pointed data is release automatially)? >> I haven't seen any, have I missed it? > > Of course Wikipedia may be wrong (pace Yannick) but > http://en.wikipedia.org/wiki/Auto_ptr#Semantics indicates that auto_ptr > doesn't in fact have reference counting? Well, I guess this shows how lacking I am in C++. I genuinely thought auto_ptr was a kind of memory manager, less thin that what is described in Wikipedia. Anyway, I still see the use of the thing I thought was auto_ptr, and others pointing at implementations seems to confirm this usefulness. However I still don't really understand why it's not part of the standard, but I guess I will be more able to judge how useful it really is in Ada after having much more Ada practise. Thanks for correcting me, Natasha