comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: API design problem - buffer scatter I/O
Date: Mon, 24 Nov 2008 16:23:52 -0500
Date: 2008-11-24T16:23:52-05:00	[thread overview]
Message-ID: <wcchc5wrf6f.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1b06d68d-a6d8-4af3-8464-92e44224dcd6@20g2000yqt.googlegroups.com

christoph.grein@eurocopter.com writes:

> So, Bob, could you please elaborate about what is wrong in this
> description.

Let me make an analogy:

If I want to teach someone how to operate a car,
I will first tell them about the steering wheel,
the clutch, the brake pedal, stop signs, traffic
lights and so forth.

Later on, I might want to teach them about pistons
and spark plugs and gears.  But that "under the hood"
stuff is too much confusing detail at first.  It should
come later.  And I should make it clear that "four cylinders"
is just one way to do it -- some have 6 or 8, and maybe
some (electric cars?) don't have cylinders at all.
You still have to stop a stop sign, when driving an
electric car.

Likewise, for access types, beginners to Ada (whether or not they know
other languages first) need to know about .all and new and
Unchecked_Deallocation.  Later on, they can learn about interfacing to
C, unchecked conversion, and Address_To_Access_Conversions -- and maybe
even thin/fat pointers.  But I should make it clear that "fat pointers"
is just one way to do it.

In any case, it is certainly valuable to have a wiki or whatever
that presents things to programmers in a simpler way than the RM!

- Bob



  parent reply	other threads:[~2008-11-24 21:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-22 16:05 API design problem - buffer scatter I/O Maciej Sobczak
2008-11-22 16:54 ` sjw
2008-11-22 19:43 ` george.priv
2008-11-22 22:16 ` Robert A Duff
2008-11-22 23:34   ` Maciej Sobczak
2008-11-23  0:01     ` Robert A Duff
2008-11-24  8:10       ` Brad Moore
2008-11-24  7:55   ` christoph.grein
2008-11-24 20:03     ` Robert A Duff
2008-11-25  5:59       ` christoph.grein
2008-11-25  8:34         ` Dmitry A. Kazakov
2008-11-25 14:25         ` Robert A Duff
2008-11-25 22:20       ` Randy Brukardt
2008-11-24 21:23     ` Robert A Duff [this message]
2008-11-22 23:01 ` Georg Bauhaus
2008-11-23  5:57 ` anon
2008-11-24 17:16 ` tmoran
2008-11-26  8:34   ` Maciej Sobczak
2008-11-26 20:39     ` sjw
replies disabled

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