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,fccea7ca608399cd X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Vector of Vectors. Followup-To: comp.lang.ada Date: Fri, 16 Jan 2009 11:15:26 +0100 Message-ID: <6tb521F9hhmiU1@mid.individual.net> References: <496e8418$0$25733$4d3efbfe@news.sover.net> <496f2743$0$25734$4d3efbfe@news.sover.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: individual.net XQC1/SqHa0Fc0yu1lNl0kQNwNXgtk/3lLOOCwI7rMuAyDuIUs= Cancel-Lock: sha1:FrHrjoibDeZCPrhjaZSE/j9JYBo= User-Agent: KNode/0.99.01 Xref: g2news2.google.com comp.lang.ada:4346 Date: 2009-01-16T11:15:26+01:00 List-Id: Peter C. Chapin wrote: > Jeffrey R. Carter wrote: > > >>> Surely there must be a straight forward way to do this! >> >> I'd probably use Update_Element. > > Okay, thanks. That sounds like a reasonably approach. > > I don't mind the extra typing, honestly, and some extra "complexity" is > also acceptable since this isn't something I need to do often (in > general). Being straight forward conceptually is more important and > Update_Element seems to satisfy that criteria. To be fair, since I was the one throwing the typing bit, this kind of "heavyweight" constructs are sparingly needed (in my use cases) when using the standard containers. And in any case you can write a wrapper once and hide it for good.