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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0a123883ff0cb0f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.117.143 with SMTP id r15mr12396564qaq.1.1349695766462; Mon, 08 Oct 2012 04:29:26 -0700 (PDT) Received: by 10.236.192.168 with SMTP id i28mr1627116yhn.7.1349695766431; Mon, 08 Oct 2012 04:29:26 -0700 (PDT) Path: r17ni19qap.0!nntp.google.com!l8no31002490qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Oct 2012 04:29:26 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.71.180.107; posting-account=P68zsgoAAABKpXKMUuwuUZ_RfBk1kZfB NNTP-Posting-Host: 193.71.180.107 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: API design considerations - variable-length array in record type From: =?ISO-8859-1?Q?Egil_H=F8vik?= Injection-Date: Mon, 08 Oct 2012 11:29:26 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-08T04:29:26-07:00 List-Id: On Monday, October 8, 2012 11:03:04 AM UTC+2, Maciej Sobczak wrote: >=20 > A straightforward choice is a predefined instantiation of Ada.Containers.= Vectors for Integer and this would be probably the least surprising, especi= ally in the context of Y : Unbounded_String, but at the same time I'm open = to consider some more lightweight alternatives. >=20 If you don't mind using Ada 2012 packages, there's also Ada.Containers.Inde= finite_Holders (RM A.18.18). I haven't used it myself yet, so I can't say anything about how lightweight= it is compared to Vector. --=20 ~egilhh