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,e7d4f2a40929e50c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-22 01:39:47 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: shoko2004@hotmail.com (shoko) Newsgroups: comp.lang.ada Subject: array and pointers Date: 22 Nov 2003 01:39:46 -0800 Organization: http://groups.google.com Message-ID: <4948f537.0311220139.570c8a4e@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 1069493987 13141 127.0.0.1 (22 Nov 2003 09:39:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 22 Nov 2003 09:39:47 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2842 Date: 2003-11-22T01:39:46-08:00 List-Id: hi i am new in ada my question is: i have a function that returns unconstrained array i am tring to create a pointer to the new array could somone help me: what is wwrong in the following code?: type Arr is Array(Item range<>) of Integer; a:Arr:=(1,2,2,2,3,4,3) ; type n_array_Ptr is access Arr; n: n_array_Ptr; begin n:= new Array_filter(a); put_line("hello");