From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: API design considerations - variable-length array in record type
Date: Mon, 8 Oct 2012 17:37:58 +0300
Date: 2012-10-08T17:37:58+03:00 [thread overview]
Message-ID: <20121008173758.cbdf04e735c2daa76a3b0eb1@iki.fi> (raw)
In-Reply-To: baed6d3c-47ee-4a4f-91b1-8e6ecc7e8ded@googlegroups.com
Hi,
On Mon, 8 Oct 2012 04:53:15 -0700 (PDT)
Maciej Sobczak <see.my.homepage@gmail.com> wrote:
> W dniu poniedziałek, 8 października 2012 13:29:26 UTC+2 użytkownik Egil Høvik napisał:
>
> > If you don't mind using Ada 2012 packages, there's also Ada.Containers.Indefinite_Holders (RM A.18.18).
>
> That would be a perfectly justified choice, except for the fact that this is a library code, which is intended for wider use and relying on Ada 2012 would be too constraining.
> Still, a possible approach would be to (re)implement Indefinite_Holders as a supporting package and at some point in the future switch to the standard package with minimal or no impact. I will seriously take it into consideration.
I have variation of Indefinite_Holders implemented in Ada 95 here:
https://bitbucket.org/tkoskine/hauki/src/tip/src/hauki-containers-object_holders.ads
https://bitbucket.org/tkoskine/hauki/src/tip/src/hauki-containers-object_holders.adb
My implementation probably doesn't match Ada 2012 100%, but shows
that it is possible to implemented them in Ada 95 also.
>
> Regards,
>
> --
> Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com
--
Tero Koskinen - http://iki.fi/tero.koskinen/
next prev parent reply other threads:[~2012-10-08 14:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 9:03 API design considerations - variable-length array in record type Maciej Sobczak
2012-10-08 11:13 ` Simon Wright
2012-10-08 11:29 ` Egil Høvik
2012-10-08 11:53 ` Maciej Sobczak
2012-10-08 14:37 ` Tero Koskinen [this message]
2012-10-09 2:02 ` Shark8
2012-10-09 5:16 ` Adam Beneschan
2012-10-09 5:45 ` Shark8
2012-10-09 5:42 ` Niklas Holsti
2012-10-09 3:10 ` Stephen Leake
2012-10-09 7:47 ` Maciej Sobczak
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox