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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Parameterless generic instance in place of opaque type instance Date: Sun, 28 Jul 2013 08:36:36 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: ds8m8HfAx594C0h4s/JFyA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:16570 Date: 2013-07-28T08:36:36+02:00 List-Id: Le Sun, 28 Jul 2013 07:49:36 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > Just that I've not seen that pattern too much (to be honest, never), s= o = > I would like to know if there are people here who already did this and= = > what can be reported about this pattern on the long run. The Ada 95 Q&S Guide mention this pattern, and seems to have no more to = = say about it, not more than what is obvious: http://www.adaic.org/resources/add_content/docs/95style/html/sec_8/8-3-5= .html They call this pattern, =E2=80=9CGeneric Abstract Data Object=E2=80=9D. If this Q&S Guide mention it, it must have been used by some people = sometimes, so may be I'm just not wrong if I opt for this. The only issu= e = then could be: do compilers handle this well? (without unnecessary = duplication). I still welcome any comments, if there are some worth to be reported. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity