comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: Please Help.
Date: 1997/09/12
Date: 1997-09-12T00:00:00+00:00	[thread overview]
Message-ID: <34197042.7CFC@gsfc.nasa.gov> (raw)
In-Reply-To: 5vbiid$luu$1@goanna.cs.rmit.edu.au



Dale Stanbrough wrote:
> 
> <snip>
<
> I don't see how
> 
>         "if you want to process variable length character data, use
>          this type"
> 
> should be described as featurism. I think it took around 15 minutes
> to introduce this in the first lecture of 2nd semester. The rest
> was devoted to the text_io input model, command line arguments, and
> general new subject stuff. Not a great amount of time.
> For most students the complexity is completey hidden (only a
> handful of them even know about controlled types, and _I_ certainly
> haven't told them).

My problem with this is it leads to the assumption that we don't have to
pay any attention to garbage collection, because it magically works.
I've run into several C++ programmers whose code blindly fragments the
heap, and when I say "must run forever", they have no clue what to do. I
hope Ada programmers get better training.

Unbounded strings are very nice for beginners. However, they do require
some form of garbage collection to be used correctly. I hope that later
in the course, this will be pointed out.

Which leads me to a question about the GNAT implementation of Unbounded
Strings; do they have their own storage pool, and does Free compact the
pool? One of these days I'll try to read the source.

-- 
- Stephe




  reply	other threads:[~1997-09-12  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-09  0:00 Please Help Ken
1997-09-09  0:00 ` Dale Stanbrough
1997-09-11  0:00   ` Robert Dewar
1997-09-12  0:00     ` Tristan Ludowyk
1997-09-12  0:00       ` Robert Dewar
1997-09-13  0:00         ` Matthew Heaney
1997-09-13  0:00           ` Dale Stanbrough
1997-09-12  0:00       ` Dale Stanbrough
1997-09-12  0:00         ` Stephen Leake [this message]
1997-09-13  0:00           ` Robert Dewar
1997-09-15  0:00             ` Stephen Leake
1997-09-15  0:00               ` Dale Stanbrough
1997-09-16  0:00               ` Robert Dewar
1997-09-17  0:00                 ` Stephen Leake
1997-09-18  0:00                   ` Robert Dewar
1997-09-19  0:00                     ` Stephen Leake
1997-09-19  0:00                       ` Robert S. White
1997-09-20  0:00                       ` Robert Dewar
1997-09-15  0:00     ` Richard A. O'Keefe
1997-09-16  0:00       ` Robert Dewar
1997-09-09  0:00 ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2001-10-25  6:55 please help Phosphorus
2001-10-25  8:22 ` Preben Randhol
2001-10-25 12:35 ` Marc A. Criley
replies disabled

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