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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c0c92a2a1144329c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-23 12:59:40 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: shoko2004@hotmail.com (shoko) Newsgroups: comp.lang.ada Subject: generic question Date: 23 Nov 2003 12:59:39 -0800 Organization: http://groups.google.com Message-ID: <4948f537.0311231259.5a584f23@posting.google.com> NNTP-Posting-Host: 217.132.90.163 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1069621180 17452 127.0.0.1 (23 Nov 2003 20:59:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 23 Nov 2003 20:59:40 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2880 Date: 2003-11-23T12:59:39-08:00 List-Id: hi i have the following generic package: -------------------------------- generic type s is (<>); -- enum type of the abc of the automat type s_ARR (integer range <>) of s; package a is someting end a; ------------------------------------ generic with package a1 is new a(<>); package b is procedure foo(str:String;var_s:a1.s_ARR); end b; -------------------------------------------- i have a procedure procedure foo(str:String;var_s:a1.s_ARR) is begin end foo; ----------------------------------------------- and my main program: procdure main is type s is('o','p'); type s_ARR is array(integer range <>) of s; package instant_a is new a(s,s_ARR); package instant_b is new b(instant_a); begin instant_b.foo("opoo",<>); end main; ---------------------------------------------- i want to send the instant of the generic package a to the function b how do i do it right?