On Sep 3, 4:41 pm, Pascal Obry wrote: > shoshanis...@gmail.com a écrit : > > > So, perhaps you think you are very clever, but you don't know me, and > > you don't know if I'm lazy or not. So if you don't want to help, then > > just don't and keep your smart remarks to your self. > > Sorry it was not my intent. As others have said it, it is a long > tradition on comp.lang.ada to help when technical informations or > "proof" of actual research is given. The answer to most of us in cla is > trivial so it is hard to tell that it was not by laziness that it was > not understood :) > > I hope you'll have a good exam. Now back to your question: > > > I want to create a generic function that receives a generic procedure > > (without any parameters) as a parameter. > > generic > procedure Proc; > function Func (P1 : in Positive) return String; > > Now frankly I can't figure out what would be the point of Proc as it > won't be able to access/use Func parameters (kind of callback to update > something maybe...). But if this is the actual question you got the answer. > > Pascal. > > -- > > --|------------------------------------------------------ > --| Pascal Obry Team-Ada Member > --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE > --|------------------------------------------------------ > --| http://www.obry.net > --| "The best way to travel is by means of imagination" > --| > --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595 Thanks pascal, but this is not what I meant. This is too easy for me as well. I think that Anon understood my question better. To create a generic function that receives a procedure as a parameter.. Now it's just a general knowledge question ;-)