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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5b062cdca243a886 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-01 13:15:31 PST Path: archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!nycmny1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: Please review and comment Date: Wed, 1 Aug 2001 22:57:10 +0300 Organization: The Hebrew University of Jerusalem Message-ID: <9k9neq$h0n$1@news.huji.ac.il> References: <3B67526E.D7E19382@worldnet.att.net> <9k9a46$8f1$1@news.huji.ac.il> NNTP-Posting-Host: di3-11.dialin.huji.ac.il X-Trace: news.huji.ac.il 996696347 17431 132.64.13.11 (1 Aug 2001 20:05:47 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Wed, 1 Aug 2001 20:05:47 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: archiver1.google.com comp.lang.ada:10979 Date: 2001-08-01T22:57:10+03:00 List-Id: Ted Dennison wrote in message news:VlX97.14112$ar1.47292@www.newsranger.com... > In article <9k9a46$8f1$1@news.huji.ac.il>, Ehud Lamm says... > I would actually tell beginners to use perfectly-sized strings, and only resort > to Ada.Strings.* when the above can't be easily done. Newbies can indeed be > pointed at the spec for Ada.Strings.Unbounded without much other explanatory > text. Its the techniques for creating and dealing with perfectly-sized strings > in Ada that really need to be shown. > > > Its true that Strings are, in a way, just a special case of dealing with > unbounded arrays. However, they are also the case that a newbie is most likely > to stumble across first. Get them comfortable with strings, then show them that > *any* array can be used this way, and watch the mental lightbulb go on. Its > kinda fun whenever I do it. > Amen to that. You just rephrased what I thought I said... (In fact I recall submitting some FAQ entries on working with fixed sized strings - of type String - maybe they are on AdaPower somewhere). Ehud