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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,54c513170bafd693 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Desirability of C++ Date: 2000/05/02 Message-ID: <8em8mb$evd$1@wanadoo.fr>#1/1 X-Deja-AN: 618195915 References: <390DEC7F.9429C82C@online.no> <390E2A20.B647D0D6@maths.unine.ch> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 957261323 15341 193.250.171.75 (2 May 2000 09:55:23 GMT) Organization: Adalog X-MSMail-Priority: Normal NNTP-Posting-Date: 2 May 2000 09:55:23 GMT Newsgroups: comp.lang.ada Date: 2000-05-02T09:55:23+00:00 List-Id: Gautier a �crit dans le message : 390E2A20.B647D0D6@maths.unine.ch... > tmoran@bix.com wrote: > > > >made the right decision on strings when they selected counted strings for > > >Turbo Pascal/Delphi even if they are limited to 255 characters or less. > > How do those differ from > > ... is new Ada.Strings.Bounded.Generic_Bounded_Length(255); > Have a look at package Variable_String, available from http://pro.wanadoo.fr/adalog/compo2.htm > > and so on :-). IMHO the day of creation of Ada.Strings.Bounded was > a bad one... > Not at all. Variable_String is the perfect tool when you have an Abstract Data Type that you choose to *implement* as a String. For example, you may have a type Last_Name in your data base, and it makes perfect sense to implement it as a Bounded_String. You don't have one instantiation per maximum-length; you have one instantiation per abstraction. Think higher, please ;-) -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog