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: a07f3367d7,3ebfb7ec7bfb06fa,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.189.78 with SMTP id dd14mr8643138qab.0.1359839259691; Sat, 02 Feb 2013 13:07:39 -0800 (PST) X-Received: by 10.49.72.169 with SMTP id e9mr1522818qev.3.1359839259675; Sat, 02 Feb 2013 13:07:39 -0800 (PST) Path: k2ni4456qap.0!nntp.google.com!p13no8167727qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 2 Feb 2013 13:07:39 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.53.78.59; posting-account=ShYTIAoAAABytvcS76ZrG9GdaV-nXYKy NNTP-Posting-Host: 206.53.78.59 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5262a822-409a-4c79-a842-0e716527cb70@googlegroups.com> Subject: Passing indefinite types From: sbelmont700@gmail.com Injection-Date: Sat, 02 Feb 2013 21:07:39 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2013-02-02T13:07:39-08:00 List-Id: Hi, Does anyone know of a slick way to pass several locally declared, indefinit= e types to a subprogram without resorting to the heap or Unchecked_Access? = An array of indefinite types is obviously not possible, an array of named = access types is subject to accessibility problems, and wrapping the object = in an 'accessor' (i.e. a null record with an access discriminant) turns rig= ht back into a problem of an array of indefinite types. I can always decla= re a procedure that takes a bunch of individual parameters, but this seems = like a kludge, and doesn't solve the problem if the number of items might v= ary. It would be nice if there was some way to establish that a discrimina= ted record is in fact a fixed size, or perhaps if an array of anonymous acc= ess types had the same accessibility as access discriminants. But if anyon= e knows of a workaround, I would be interested in how it was done. Thank you. -sb