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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-01 07:05:03 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!oleane.net!oleane!nnrp.oleane.net!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: Wed, 1 Oct 2003 15:50:39 +0200 Organization: Adalog Message-ID: References: <1064527575.648809@master.nyc.kbcfp.com> <3F739C1D.4030907@attbi.com> <3F78E850.8010401@comcast.net> <3F797748.3000203@noplace.com> <834clb.uan1.ln@skymaster> <3F7AC5B0.9080108@noplace.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1065016901 22921 195.25.228.57 (1 Oct 2003 14:01:41 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 1 Oct 2003 14:01:41 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:69 Date: 2003-10-01T15:50:39+02:00 List-Id: "Marin David Condic" a �crit dans le message de news:3F7AC5B0.9080108@noplace.com... > O.K. But my question remains, "Does anybody use them in *practice*?" > When I've needed a record field for something like Person_Name and > wanted some fixed allocation on it, I use a String and if/when I needed > to know where the string stopped, I use a "Last_Non_Blank ()" function. > But in most of the instances where I need something like this, I just > jump to Unbounded_String and am done with it. > Maybe you missed the point that you have *different* types for Person_Name and Person_Address. Of course, you could use types derived from strings. And keep the current length in an integer rather looking for a space, so you'll have to pack that into a record. While we're at it, it would be nice to have a discriminant to parameterize the maximum length... Well, at that point, you are just rewriting Bounded_Strings. (except for the discriminant in place of the generic parameter). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr