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=ham 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:32:17 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Implementing Memorize Date: Wed, 22 Oct 2003 10:32:17 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1066818737 4900 217.17.192.37 (22 Oct 2003 10:32:17 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 22 Oct 2003 10:32:17 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:1394 Date: 2003-10-22T10:32:17+00:00 List-Id: * 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?