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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail From: shoshanister@gmail.com Newsgroups: comp.lang.ada Subject: Re: urgent question - generics Date: Mon, 03 Sep 2007 09:46:50 -0700 Organization: http://groups.google.com Message-ID: <1188838010.267002.81550@d55g2000hsg.googlegroups.com> References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> <46DBD07D.1010608@obry.net> <1188811690.972176.242330@22g2000hsm.googlegroups.com> <46DC0F26.8090804@obry.net> NNTP-Posting-Host: 89.138.8.190 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1188838010 11710 127.0.0.1 (3 Sep 2007 16:46:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 Sep 2007 16:46:50 +0000 (UTC) In-Reply-To: <46DC0F26.8090804@obry.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=89.138.8.190; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1710 Date: 2007-09-03T09:46:50-07:00 List-Id: On Sep 3, 4:41 pm, Pascal Obry wrote: > shoshanis...@gmail.com a =E9crit : > > > 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 answe= r=2E > > 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 Thanks pascal, but this is not what I meant. This is too easy for me as well. I think that Anon understood my question better. To create a generic function that receives a procedure as a parameter.. Now it's just a general knowledge question ;-)