From: Kulin Remailer <remailer@reece.net.au>
Subject: Re: How do I use GNAT.Directory_Operations.Iteration?
Date: 15 Mar 2011 17:51:08 -0000
Date: 2011-03-15T17:51:08+00:00 [thread overview]
Message-ID: <MOOJ3M1V40618.0771759259@reece.net.au> (raw)
In-Reply-To: m2ipvkocsf.fsf@pushface.org
> > http://www.iuma.ulpgc.es/users/jmiranda/gnat-rts/rts/g-dirope__ads.htm
Thank you.
> There's a discussion of the use of generic formal subprograms at
> http://en.wikibooks.org/wiki/Ada_Programming/Generics#Generic_formal_subprograms
Thank you.
> 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 I have instantiated generics for text io, enumeration io etc but this
iteration generic threw me for a loop (pun intended!) Maybe it was the
double indirection. First you have to define a procedure and then
instantiate the generic with your procedure. I guess I have only understood
how a type is given to instantiate a generic, not a procedure.
The package spec does explain how to use the API as far as I can see, not
having tried it yet. The issue for me is not knowing Ada enough.
next prev parent reply other threads:[~2011-03-15 17:51 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
2011-03-16 13:52 ` Anonymous
2011-03-15 17:51 ` Kulin Remailer [this message]
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