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 X-Google-Thread: 103376,98dbc8f279df5afc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-16 11:04:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A nongeneric bounded string array type References: <3F86E9DE.4070000@comcast.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <15Bjb.3193$s93.443@newsread3.news.pas.earthlink.net> Date: Thu, 16 Oct 2003 18:04:45 GMT NNTP-Posting-Host: 63.184.9.21 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1066327485 63.184.9.21 (Thu, 16 Oct 2003 11:04:45 PDT) NNTP-Posting-Date: Thu, 16 Oct 2003 11:04:45 PDT Xref: archiver1.google.com comp.lang.ada:1008 Date: 2003-10-16T18:04:45+00:00 List-Id: Jean-Pierre Rosen wrote: > "Matthew Heaney" a �crit dans le > message de news:uwub7dvnz.fsf@earthlink.net... > >> Stephen Leake writes: >> >>> It is also possible to write a direct replacement for >>> Ada.Strings.Bounded that is not generic, but takes a discriminant >>> for the max length. >> >> There is a bounded string like that in the Charles library: >> >> charles.strings.bounded >> >> >> > Or use the Variable_String package, available from Adalog's > components page: http://www.adalog.fr/compo2.htm The Ada-83 PragmAda Reusable Components also had such a type, but with the inclusion of bounded and unbounded strings in Ada in 1995, it was dropped. It's generally better to have, and use, a standard form, even if it's not exactly how you'd do it yourself, than to write something that does the same thing. -- Jeff Carter "Perfidious English mouse-dropping hoarders." Monty Python & the Holy Grail 10