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,FREEMAIL_FROM, T_HK_NAME_FM_MR_MRS autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,931285576c2f2928,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-21 02:31:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ratsonjaniv@hotmail.com (Mr. J.) Newsgroups: comp.lang.ada Subject: passing an array to a generic function Date: 21 Nov 2003 02:31:52 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 82.166.180.206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1069410712 17174 127.0.0.1 (21 Nov 2003 10:31:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 21 Nov 2003 10:31:52 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2790 Date: 2003-11-21T02:31:52-08:00 List-Id: hi, this is my generic function: generic type Index is (<>); type Item is private; type Arr is array(Index range <>) of Item; with function "="(I1,I2 : Item) return Boolean is <>; function Filter_Array(A: Arr) return Arr; Now, I wanna write a create a Filter_String function according to it: type Index is new Integer; type Item is new Character; type Arr is Array(1..23) of character; function Filter_String is new Filter_Array(Index,Item,Arr,"="); As U all experts guessed it won't compile, my question is how to pass the array of character to my new function ? 10x, J.