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!mx02.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Fri, 31 Jul 2015 11:26:36 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 31 Jul 2015 11:26:36 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="da745e888d4a5182b5fda6212bbb0a63"; logging-data="11855"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+afTRyV0SN4b0GbHEEs1awIbQwJWC/PrM=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:3ynhNbbGoiYOKMxyolGLm705ffI= Xref: news.eternal-september.org comp.lang.ada:27263 Date: 2015-07-31T11:26:36+00:00 List-Id: 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)? I have sometimes felt it would be useful to translate some of the standard programming texts into Ada - some of the GoF "Design Patterns" turn out to be utterly trivial in Ada; some others have been covered ad- hoc in the "Gems" series, in other cases I'm not clear which of several approaches would be most appropriate. -- Brian