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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d74d61525ce986e9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-22 03:50:03 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stueberl.de!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: Implementing Memorize Date: Wed, 22 Oct 2003 10:48:11 +0000 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1066819733 67107 80.67.180.195 (22 Oct 2003 10:48:53 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 22 Oct 2003 10:48:53 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: X-Mailer: Ximian Evolution 1.4.5 X-OriginalArrivalTime: 22 Oct 2003 10:44:48.0009 (UTC) FILETIME=[83776F90:01C39889] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:1396 Date: 2003-10-22T10:48:11+00:00 On Wed, 2003-10-22 at 10:32, Lutz Donnerhacke wrote: > * christoph.grein@eurocopter.com wrote: > >> generic > >> with function Callback (n : Natural) return Natural; > >> function Action (n : Natural) return Natural; > >> > >> function Action (n : Natural) return Natural is > >> begin > >> case n is > >> when 0 | 1 => return 1; > >> when others => return Callback(n-1) + Callback(n-2); > >> end case; > >> end Action; > >> > >> function Fib_Direct is new Action (Fib_Direct); -- won't compile > > ~~~~~~~~~~ > > This hides the other homonyme from all visibility until the end of > > the declaration. > > What's the correct way to implement it? Maybe with an access-to-subprogram type. What problem are your trying to solve?