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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.124.225 with SMTP id ml1mr2237156pab.31.1438344723577; Fri, 31 Jul 2015 05:12:03 -0700 (PDT) X-Received: by 10.140.32.74 with SMTP id g68mr19057qgg.37.1438344723529; Fri, 31 Jul 2015 05:12:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f3no5390967igg.0!news-out.google.com!78ni1085qge.1!nntp.google.com!z61no4387172qge.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 31 Jul 2015 05:12:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.203.145.32; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 NNTP-Posting-Host: 81.203.145.32 References: <2df4698f-4c8e-457c-822d-209cb2f8ab5e@googlegroups.com> <014427b1-ff7a-4a69-82e6-0330af77ed96@googlegroups.com> <91f88d79-197c-419f-84a8-908e05967a2c@googlegroups.com> <135c2b00-d13c-4f5d-a586-8aca442d363b@googlegroups.com> <87380683vc.fsf@adaheads.sparre-andersen.dk> <347c6be9-c918-4bc0-9494-c93cd6740def@googlegroups.com> <4cb32c40-f659-490d-bbb6-73585fc069e8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <64c52db1-4190-4596-b274-9fa12e358211@googlegroups.com> Subject: Re: Running a preprocessor from GPS? From: EGarrulo Injection-Date: Fri, 31 Jul 2015 12:12:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27264 Date: 2015-07-31T05:12:03-07:00 List-Id: On Friday, July 31, 2015 at 1:28:11 PM UTC+2, Brian Drummond wrote: > On Thu, 30 Jul 2015 13:53:26 -0700, EGarrulo wrote: > > > I am not thinking in C++ terms. I am thinking in terms of patterns that > > I know for managing resources. So far, I only know the "shared/weak > > pointer" idiom. If Ada offers something else, besides manual > > reclamation, I am eager to learn about it. > > To help us all get on the same page, can you link to a good description > (presumably, not in C++ terms) of what you mean by the "shared/weak > pointer idiom"? Or name the appropriate Design Pattern(s)? Unfortunately, since the "shared/weak pointer" idiom originated in C++, where its usage is pervasive, most examples are implemented in C++. Anyway, here are some articles that you may read (just skip the C++ parts): https://en.wikipedia.org/wiki/Smart_pointer https://en.wikipedia.org/wiki/Weak_reference https://en.wikipedia.org/wiki/Reference_counting