comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: How do I use GNAT.Directory_Operations.Iteration?
Date: Tue, 15 Mar 2011 04:27:54 -0700
Date: 2011-03-15T04:27:54-07:00	[thread overview]
Message-ID: <ilnig0$rpj$2@speranza.aioe.org> (raw)
In-Reply-To: m2ipvkocsf.fsf@pushface.org

On 3/15/2011 4:15 AM, Simon Wright wrote:

>
> The actual documentation is at
> http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gnat_rm/GNAT_002eDirectory_005fOperations_002eIteration-_0028g_002
>ddiopit_002eads_0029.html#GNAT_002eDirectory_005fOperations_002eIteration-_0028g_002ddiopit_002eads_0029
> (gosh, what a URL! might be better to start here:
> http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gnat_rm/The-GNAT-Library.html#The-GNAT-Library
> and look for g-diopit.ads)
>

Yes, I know about those, and have visited them, but they do not have the source code?
All what it says:

"9.56 GNAT.Directory_Operations.Iteration (g-diopit.ads)

A child unit of GNAT.Directory_Operations providing additional
operations for iterating through directories."

But how to use it? The same link for the gcc part, I looked at also.
I was looking for the source code, to get an idea how to call it.

> and it's not helpful (specially to a newcomer).
>
> There's a discussion of the use of generic formal subprograms at
> http://en.wikibooks.org/wiki/Ada_Programming/Generics#Generic_formal_subprograms
>

>> When I write something myself, I try to always put a small example
>> at the top, as part of it documentation, of how to call or use it.
>> It would be nice if these had such examples.
>
> Agreed, to some extent. Though it'd only really be helpful here if you'd
> never come across generic formal subprograms before. The comments in the
> spec (the secret GNAT documentation!) seem pretty explicit, aside only
> from the language detail that the OP had trouble with.

Well, considering that Ada is used very little relatively speaking,
then one can say that almost all programmers can be classified as Ada
newbies.

So, having documentation readily available on how to call or use something
will make it easier for the rest of use to start using Ada, else a newbie
can get frustrated and drop it.

Many of us learn better by seeing examples, I know I do.

--Nasser



  reply	other threads:[~2011-03-15 11:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-14 18:18 How do I use GNAT.Directory_Operations.Iteration? Kulin Remailer
2011-03-14 18:45 ` Thomas Løcke
2011-03-14 20:34 ` Dmitry A. Kazakov
2011-03-15  6:30 ` Stephen Leake
2011-03-15  7:20   ` Dmitry A. Kazakov
2011-03-15  9:51     ` Nomen Nescio
2011-03-15 10:23       ` Ludovic Brenta
2011-03-15 10:45         ` Nasser M. Abbasi
2011-03-15 11:15           ` Simon Wright
2011-03-15 11:27             ` Nasser M. Abbasi [this message]
2011-03-16 13:52               ` Anonymous
2011-03-15 17:51             ` Kulin Remailer
2011-03-15 17:20           ` Kulin Remailer
2011-03-15 21:40             ` Adam Beneschan
2011-03-15 22:46               ` Ludovic Brenta
2011-03-16  6:35                 ` Anonymous
2011-03-16  6:48                   ` Simon Wright
2011-03-16 11:11                     ` Mart van de Wege
2011-03-16 13:16                       ` Kulin Remailer
2011-03-16  8:35                   ` Ludovic Brenta
2011-03-16  7:31                 ` Kulin Remailer
2011-03-16  5:33               ` Noel Duffy
2011-03-16 22:15       ` Stephen Leake
replies disabled

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