passing an array to a generic function
From: Mr. J. (ratsonjaniv_at_hotmail.com)
Date: 11/21/03
- Next message: Lutz Donnerhacke: "Generic thinbinding toolkit for C"
- Previous message: Andrew Carroll: "new Ada compiler"
- Next in thread: Lutz Donnerhacke: "Re: passing an array to a generic function"
- Reply: Lutz Donnerhacke: "Re: passing an array to a generic function"
- Reply: David C. Hoos: "Re: passing an array to a generic function"
- Reply: Jean-Pierre Rosen: "Re: passing an array to a generic function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Nov 2003 02:31:52 -0800
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.
- Next message: Lutz Donnerhacke: "Generic thinbinding toolkit for C"
- Previous message: Andrew Carroll: "new Ada compiler"
- Next in thread: Lutz Donnerhacke: "Re: passing an array to a generic function"
- Reply: Lutz Donnerhacke: "Re: passing an array to a generic function"
- Reply: David C. Hoos: "Re: passing an array to a generic function"
- Reply: Jean-Pierre Rosen: "Re: passing an array to a generic function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|