comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Please review and comment
Date: Wed, 01 Aug 2001 17:52:53 GMT
Date: 2001-08-01T17:52:53+00:00	[thread overview]
Message-ID: <VlX97.14112$ar1.47292@www.newsranger.com> (raw)
In-Reply-To: 9k9a46$8f1$1@news.huji.ac.il

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



  reply	other threads:[~2001-08-01 17:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-01  0:48 Please review and comment James Rogers
2001-08-01  1:30 ` tmoran
2001-08-01  3:38   ` James Rogers
2001-08-01 15:01     ` Ted Dennison
2001-08-01 15:24       ` Preben Randhol
2001-08-01 14:47 ` Ted Dennison
2001-08-01 15:44   ` Marin David Condic
2001-08-01 16:17   ` Ehud Lamm
2001-08-01 17:52     ` Ted Dennison [this message]
2001-08-01 19:57       ` Ehud Lamm
2001-08-01 20:10       ` Ehud Lamm
2001-08-01 15:58 ` Ehud Lamm
2001-08-02  2:10   ` Navid Azimi
2001-08-02  3:47     ` tmoran
2001-08-02 15:12     ` Ted Dennison
2001-08-02  7:16   ` Martin Dowie
2001-08-02 10:16     ` Ehud Lamm
2001-08-02 10:49       ` Martin Dowie
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox