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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: urgent question - generics Reply-To: anon@anon.org (anon) References: <1188809249.040351.100160@r29g2000hsg.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Mon, 03 Sep 2007 10:23:22 GMT NNTP-Posting-Host: 12.65.174.11 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1188815002 12.65.174.11 (Mon, 03 Sep 2007 10:23:22 GMT) NNTP-Posting-Date: Mon, 03 Sep 2007 10:23:22 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:1674 Date: 2007-09-03T10:23:22+00:00 List-Id: with Ada.text_IO ; with System ; procedure zzero is function function_0 ( func : System.Address ; Data : Float ) return float is procedure tst ; pragma Import ( Ada, tst ) ; for tst'address use func ; begin -- function_0 tst ; return Data * 2.0 ; end function_0 ; -- ---------- -- -- Test: Proc -- -- ---------- -- procedure test is begin -- test Ada.Text_IO.Put_Line ( "Testing" ) ; end test ; Result : Float ; begin Result := function_0 ( test'address, 0.5 ) ; end zzero ; In <1188809249.040351.100160@r29g2000hsg.googlegroups.com>, shoshanister@gmail.com writes: >I need your urgent help, I have an exam soon, and I still cant figure >this out: >I want to create a generic function that receives a generic procedure >(without any parameters) as a parameter. > >Do you have any ideas? >Thanks a lot. >R >