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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Wed, 9 Mar 2005 16:43:46 +0000 Organization: Cuivre, Argent, Or Message-ID: References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1110377260.350158.58730@z14g2000cwz.googlegroups.com> <422f16d2$0$1089$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1110386659 8055 212.85.156.195 (9 Mar 2005 16:44:19 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 9 Mar 2005 16:44:19 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: Pascal Obry Return-Path: In-Reply-To: X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:8948 Date: 2005-03-09T16:43:46+00:00 On 9 Mar 2005, at 15:39, Pascal Obry wrote: > Georg Bauhaus writes: > >>> Can templates recurse? >> >> No. (Though you can mix recursive subprograms, nesting, and template >> instantiation.) > > Hum, since you answered "no" and I answered "yes" it seems there is > something > about "templates recurse" that I did not understand. Same here. Maybe Georg was thinking of the limitation that you cannot instantiate a generic unit inside itself. This is so probably because it was deemed impossible to write a terminal condition. But I'm not sure about that. And I suspect that with the new bag of tricks of Ada 2005 notably interfaces you can do it. But yes, let's hear it from the C++ experts. Can you create an instance of a template inside itself?