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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5117b1b6391a0e06 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: A simple ADA puzzle (I haven't the answer) Date: Wed, 16 Jun 2004 22:25:09 +0000 (UTC) Organization: BT Openworld Message-ID: References: <_Q%zc.7117$Wr.4869@newsread1.news.pas.earthlink.net> NNTP-Posting-Host: host81-154-190-178.range81-154.btcentralplus.com X-Trace: titan.btinternet.com 1087424709 10375 81.154.190.178 (16 Jun 2004 22:25:09 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Wed, 16 Jun 2004 22:25:09 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Xref: g2news1.google.com comp.lang.ada:1590 Date: 2004-06-16T22:25:09+00:00 List-Id: "Jeffrey Carter" wrote in message news:_Q%zc.7117$Wr.4869@newsread1.news.pas.earthlink.net... > Frank J. Lhota wrote: > > > > If there is no reasonable upper limit on the LEN discriminant, if > > say LEN can vary from 1 to hundreds of thousands, then the best > > solution would be to use an array of pointers. This would be the only > > reasonable way to create an array of objects of widely varying sizes. > > For example: > > No, the best solution is to use Ada.Strings.Unbounded.Unbounded_String. I'm not sure this is going to help - the style this is written in is Ada83 and I've seen exactly this problem in '83 code written at a sister site within the company I work for (don't worry Simon, it wasn't yours! ;-) Not being allowed to change things at all is a common fixation when porting an existing Ada83 application - nonsensical, but common. Cheers -- Martin