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-Thread: 103376,ebdc5ed511896a0 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!exabot.com!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <46DC0F26.8090804@obry.net> Date: Mon, 03 Sep 2007 15:41:58 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: shoshanister@gmail.com Subject: Re: urgent question - generics References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> <46DBD07D.1010608@obry.net> <1188811690.972176.242330@22g2000hsm.googlegroups.com> In-Reply-To: <1188811690.972176.242330@22g2000hsm.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 03 Sep 2007 15:41:59 CEST NNTP-Posting-Host: 82.120.19.133 X-Trace: 1188826919 news.orange.fr 27410 82.120.19.133:1055 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:1694 Date: 2007-09-03T15:41:59+02:00 List-Id: shoshanister@gmail.com a �crit : > So, perhaps you think you are very clever, but you don't know me, and > you don't know if I'm lazy or not. So if you don't want to help, then > just don't and keep your smart remarks to your self. Sorry it was not my intent. As others have said it, it is a long tradition on comp.lang.ada to help when technical informations or "proof" of actual research is given. The answer to most of us in cla is trivial so it is hard to tell that it was not by laziness that it was not understood :) I hope you'll have a good exam. Now back to your question: > I want to create a generic function that receives a generic procedure > (without any parameters) as a parameter. generic procedure Proc; function Func (P1 : in Positive) return String; Now frankly I can't figure out what would be the point of Proc as it won't be able to access/use Func parameters (kind of callback to update something maybe...). But if this is the actual question you got the answer. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595