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!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: 'Protected' abstract subprograms Date: Sat, 11 Jan 2014 09:41:14 +0100 Organization: A noiseless patient Spider Message-ID: References: <839fee13-2743-49f6-a7f3-f95578386201@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 11 Jan 2014 08:41:14 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="3702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5SaLw/4wbODhYrxboAI8b" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <839fee13-2743-49f6-a7f3-f95578386201@googlegroups.com> Cancel-Lock: sha1:ruoOhZz73HaVUe8bwloGEia4Lm0= X-Enigmail-Version: 1.6 Xref: news.eternal-september.org comp.lang.ada:18150 Date: 2014-01-11T09:41:14+01:00 List-Id: Le 10/01/2014 23:00, sbelmont700@gmail.com a écrit : > I find it to be a fairly common occurrence and, depending on who you > ask, a programming best practice to have a publically visible > non-abstract dispatching operation re-dispatch to an abstract > subprogram (i.e. the 'template pattern'). Could you give a concrete example of what you are trying to achieve? Remember that Ada has features that don't exist in other languages (like the separation between specific and class-wide types), therefore the solution to a problem may be to use different tools. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr