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,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-01 17:38:55 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!not-for-mail Message-ID: <3F7B7391.3080301@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 02 Oct 2003 00:38:55 GMT NNTP-Posting-Host: 165.247.68.145 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1065055135 165.247.68.145 (Wed, 01 Oct 2003 17:38:55 PDT) NNTP-Posting-Date: Wed, 01 Oct 2003 17:38:55 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:88 Date: 2003-10-02T00:38:55+00:00 List-Id: No. I don't think I missed that point. Person_Name and Person_Address can both be derived from String - as you observe. Do I get enough *extra* from Bounded_String to make it worth not being "compatible" with String for all the usual Ada attributes, subprograms, etc? My usual answer is "No". Maybe others have a different answer. Hence the question: "Do people use Bounded_String much in practice or is it a 'Nice To Have' feature that just doesn't see much practical usage." I'd like to see some semi-reasonable survey of folks doing a "Search *.ad* 'Bounded_String'" on their libraries of Ada95 code and discover if *in practice* it really gets used much. My personal experience is 'not much - if at all.' I just never thought I got enough out of Bounded_String to make it worth the effort of not being compatible with all the 'standard' things that utilized the type String. (Yes, I'm aware you can convert. I'm thinking of the extra effort involved in doing "with"s and To_Bounded_String, etc.) I'd either use String or Unbounded_String. Maybe others don't - but intellectual arguments don't settle the question of "real world" usage. MDC Jean-Pierre Rosen wrote: > > 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). > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m c o n d i c @ a c m . o r g "All reformers, however strict their social conscience, live in houses just as big as they can pay for." --Logan Pearsall Smith ======================================================================