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 03:45:20 -0700
Date: 2011-03-15T03:45:20-07:00	[thread overview]
Message-ID: <ilng06$m2o$1@speranza.aioe.org> (raw)
In-Reply-To: 28b47ca7-734d-4373-ad49-bfe36e00719d@l14g2000pre.googlegroups.com

On 3/15/2011 3:23 AM, Ludovic Brenta wrote:
> Nomen Nescio wrote on comp.lang.ada:
>> Hi everyone, thanks for your examples. My problem is instantiating the
>> GNAT.Directory_Operations.Iteration package and all of your answers are
>> about using Ada.Directories in code, which is not what I am asking about.
>>
>> I may use your examples instead of the GNAT package because it would be more
>> portable, but I would like to understand how to instantiate the GNAT
>> package. I cannot figure the right syntax.
>
> Something like:
>
>     procedure Do_Something_With (Item : String; Index : Positive;
> Quit : in out Boolean);
>     -- processes the file named Item.  Implementation left to the
> reader.
>
>     procedure Do_Something_On_All_Files_Matching is
>       new GNAT.Directory_Operations.Iteration.Find (Action =>
> Do_Something_With);
> begin
>     Do_Something_On_All_Files_Matching (Root_Directory =>  "/",
> File_Pattern =>  ".*\.ad[bs]");
>
> HTH
>
> --
> Ludovic Brenta.

When I also looked at the documentation for these packages, I could not
find any examples on how to use these:

http://www.iuma.ulpgc.es/users/jmiranda/gnat-rts/rts/g-dirope__ads.htm

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.


--Nasser




  reply	other threads:[~2011-03-15 10:45 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 [this message]
2011-03-15 11:15           ` Simon Wright
2011-03-15 11:27             ` Nasser M. Abbasi
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