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: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Fri, 31 Jul 2015 10:54:48 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org 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: 7bit Injection-Date: Fri, 31 Jul 2015 17:53:16 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ee44d3db9c41f5ad88d7e8e8f0268f05"; logging-data="18393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HJcGL5Ou9zsZLQmm6J3dh+gelUo7RYMw=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: Cancel-Lock: sha1:rZbrJ/vSTIUW44E0aXJ68HsGDtE= Xref: news.eternal-september.org comp.lang.ada:27272 Date: 2015-07-31T10:54:48-07:00 List-Id: On 07/31/2015 04:26 AM, Brian Drummond wrote: > > 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. Many of the "design patterns" are actually implementation patterns to work around deficiencies in the languages used in the book. An obvious example is the "singleton pattern". In Ada, a singleton is simply a pkg. It's only a problem that needs a pattern in languages that lack modules. -- Jeff Carter "I'm a kike, a yid, a heebie, a hook nose! I'm Kosher, Mum! I'm a Red Sea pedestrian, and proud of it!" Monty Python's Life of Brian 77