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.180.72.106 with SMTP id c10mr1427232wiv.6.1375466793795; Fri, 02 Aug 2013 11:06:33 -0700 (PDT) X-Received: by 10.50.4.38 with SMTP id h6mr183297igh.8.1375466793621; Fri, 02 Aug 2013 11:06:33 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!el7no1059548wib.1!news-out.google.com!cc8ni6102wib.1!nntp.google.com!fx3no575510qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 2 Aug 2013 11:06:33 -0700 (PDT) In-Reply-To: <16kwiwxqxuhu4$.y37yztzjskfv$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=63.80.193.9; posting-account=nD_N8QoAAACgNfe5vMwm0rMAu4pgYumJ NNTP-Posting-Host: 63.80.193.9 References: <6238c325-79c5-4537-ba55-2800110dc6df@googlegroups.com> <1wugpqyea6s39$.e2e8eshup5wn$.dlg@40tude.net> <51fadf40$0$6557$9b4e6d93@newsspool4.arcor-online.net> <15qso6tlt3uf1.h45wqc019b00$.dlg@40tude.net> <51fb80d8$0$6561$9b4e6d93@newsspool4.arcor-online.net> <1so729qnkrrj2.ztrxvmlw6cb7.dlg@40tude.net> <8bef1dc4-547b-478e-b81a-09077212f821@googlegroups.com> <16kwiwxqxuhu4$.y37yztzjskfv$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Generics vs. O-O? From: Alan Jump Injection-Date: Fri, 02 Aug 2013 18:06:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Original-Bytes: 2633 Xref: number.nntp.dca.giganews.com comp.lang.ada:182822 Date: 2013-08-02T11:06:33-07:00 List-Id: On Friday, August 2, 2013 10:51:03 AM UTC-7, Dmitry A. Kazakov wrote: > Reasons to deploy this pattern in Ada are questionable at best. > Ada offers support of singletons where appropriate. Here is the list, may= be > incomplete: > 1. Anonymous arrays are singletons > 2. Procedures and functions are singletons > 3. Protected objects are singletons > 4. Tasks objects are singletons You are stipulating that procedures, functions, protected objects and task = objects are singletons, but at the same time, stating there are only questi= onable reasons to make use of them? Semantically, you have just eliminated = the core raison d'etre for the existence of Ada as a language...specificall= y, strong typing. Back on the topic of generics, even Barnes has made a strong case for their= use, both in his "Programming in Ada 2005" text and, more recently, in his= paper "Safe and Secure Software - An Invitation to Ada 2012". - - 73 de N5ILN Alan