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-Thread: 103376,5deaed13ab94dd56,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: csaagpDIESPAMDIE@yahoo.com Newsgroups: comp.lang.ada Subject: Arrays & pointers question Date: 15 Nov 2005 11:28:54 -0800 Organization: http://groups.google.com Message-ID: <1132082934.714260.258260@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: 20.137.18.50 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1132082939 13579 127.0.0.1 (15 Nov 2005 19:28:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 15 Nov 2005 19:28:59 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=20.137.18.50; posting-account=u2H6QAwAAABVM9Q1m-qlfFrN5-xZBvsy Xref: g2news1.google.com comp.lang.ada:6401 Date: 2005-11-15T11:28:54-08:00 List-Id: Not used to pointers & Ada so I'd appreciate some help. I have a simple sort routine that sorts an array of integers. I have several variables of the same array type, so I'd like to pass in the address of each array to the sort routine. if my type/variable declarations are as such: type MYTYPE is array (1 .. 10) of INTEGER; X1: MYTYPE; X2: MYTYPE; X3: MYTYPE; I have a SORT procedure that takes 2 parameters: the first is the number of entries, and the 2nd is the address of the array. What's the correct syntax for the procedure declaration, the procedure call, and the references to the array elements inside the procedure? thanks.