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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38b27bed88e97415 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-20 07:00:02 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mheaney@on2.com (Matthew Heaney) Newsgroups: comp.lang.ada Subject: Re: Question: Combination of Access and Constraining Date: 20 Feb 2003 07:00:02 -0800 Organization: http://groups.google.com/ Message-ID: <1ec946d1.0302200700.103cab6f@posting.google.com> References: <1d13e1b4.0302200006.70207b86@posting.google.com> NNTP-Posting-Host: 66.162.65.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1045753202 3598 127.0.0.1 (20 Feb 2003 15:00:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 Feb 2003 15:00:02 GMT Xref: archiver1.google.com comp.lang.ada:34276 Date: 2003-02-20T15:00:02+00:00 List-Id: papand0pul0@yahoo.com (Papandopulo) wrote in message news:<1d13e1b4.0302200006.70207b86@posting.google.com>... > Small Ada question: > > I need one function to accept > an array of unknown size of Boolean, > so I declare type and function: > > type Tp is array (Positive range <>) of Boolean; > type Tp_Access is access all Tp; > > function Fn (Arg : in Tp_Access) return Natural; Get rid of the access type: function Fn (Arg : Tp) return Natural;