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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no 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 10:52:59 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <3B67526E.D7E19382@worldnet.att.net> <9k9a46$8f1$1@news.huji.ac.il> Subject: Re: Please review and comment Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 01 Aug 2001 13:52:53 EDT Organization: http://www.newsranger.com Date: Wed, 01 Aug 2001 17:52:53 GMT Xref: archiver1.google.com comp.lang.ada:10968 Date: 2001-08-01T17:52:53+00:00 List-Id: In article <9k9a46$8f1$1@news.huji.ac.il>, Ehud Lamm says... > >think of as more advanced. In my idiom list what I say about strings is >"use Ada.Strings.*" I alos have a docuement called "intro to Ada strings" >(this was online on my previous site, I am going to put it up again >sometime. Meanwhile, I can mail it if anyone wants. It is for complete >beginners). I suspect I've seen it before (it sounds familiar). But you can send it along if you like. 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. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com