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-Thread: 103376,f0a123883ff0cb0f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.75.39 with SMTP id z7mr4132026pav.26.1349694827875; Mon, 08 Oct 2012 04:13:47 -0700 (PDT) Path: g9ni66553pbh.1!nntp.google.com!news.glorb.com!feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: API design considerations - variable-length array in record type Date: Mon, 08 Oct 2012 12:13:46 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="7d2d00b559fb51f460ee917cabfedd73"; logging-data="24675"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19oTSWoxd3IRnb0BrJx3UcbUMkaJdinxPo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:DfqUFdMhtL0MBkczF8Hzd/Dfkj8= sha1:I3uVxMUOC7AY2GeZNyL9MYH+wco= Content-Type: text/plain Date: 2012-10-08T12:13:46+01:00 List-Id: Maciej Sobczak writes: > A straightforward choice is a predefined instantiation of > Ada.Containers.Vectors for Integer and this would be probably the > least surprising, especially in the context of Y : Unbounded_String, > but at the same time I'm open to consider some more lightweight > alternatives. This would be my choice! > The problem is - any other alternative I can think of leads to the > complication of API in the form of introducing > Ada.Finalization.Controlled to the picture. You could use "private with".