From: shoshanister@gmail.com
Subject: Re: urgent question - generics
Date: Mon, 03 Sep 2007 09:46:50 -0700
Date: 2007-09-03T09:46:50-07:00 [thread overview]
Message-ID: <1188838010.267002.81550@d55g2000hsg.googlegroups.com> (raw)
In-Reply-To: <46DC0F26.8090804@obry.net>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 1821 bytes --]
On Sep 3, 4:41 pm, Pascal Obry <pas...@obry.net> 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 ;-)
next prev parent reply other threads:[~2007-09-03 16:46 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-03 8:47 urgent question - generics shoshanister
2007-09-03 9:14 ` Pascal Obry
2007-09-03 9:28 ` shoshanister
2007-09-03 9:58 ` Dmitry A. Kazakov
2007-09-03 10:19 ` shoshanister
2007-09-03 10:48 ` Markus E L
2007-09-03 13:41 ` Pascal Obry
2007-09-03 14:08 ` Niklas Holsti
2007-09-03 14:44 ` Pascal Obry
2007-09-03 15:01 ` Dmitry A. Kazakov
2007-09-03 14:36 ` Jean-Pierre Rosen
2007-09-03 16:46 ` shoshanister [this message]
2007-09-03 19:58 ` Georg Bauhaus
2007-09-03 10:23 ` anon
2007-09-03 10:42 ` Niklas Holsti
2007-09-03 10:58 ` shoshanister
2007-09-03 11:04 ` Georg Bauhaus
2007-09-03 11:06 ` shoshanister
2007-09-03 12:00 ` Georg Bauhaus
2007-09-03 11:24 ` anon
2007-09-03 11:36 ` shoshanister
2007-09-03 13:01 ` anon
2007-09-03 16:35 ` shoshanister
2007-09-04 0:38 ` anon
2007-09-04 6:38 ` Georg Bauhaus
2007-09-05 3:47 ` anon
2007-09-05 10:11 ` Georg Bauhaus
2007-09-05 12:36 ` To Georg Bauhaus anon
2007-09-05 13:50 ` Keep slang words in describing Ada programming? (was: To Georg Bauhaus) Georg Bauhaus
2007-09-05 14:40 ` To new TROLL named Georg Bauhaus anon
2007-09-05 18:10 ` Georg Bauhaus
[not found] ` <op.tx7g6crr5afhvo@dogen>
2007-09-06 2:54 ` anon
2007-09-06 9:20 ` Markus E L
2007-09-06 6:15 ` Dirk Heinrichs
2007-09-06 9:18 ` Markus E L
2007-09-05 11:37 ` urgent question - generics Markus E L
2007-09-03 13:27 ` Ludovic Brenta
2007-09-03 13:18 ` Markus E L
2007-09-03 10:56 ` Markus E L
2007-09-05 3:49 ` Troll -- Markus E L anon
2007-09-05 11:35 ` Markus E L
2007-09-03 16:18 ` urgent question - generics tmoran
2007-09-03 21:39 ` anon
2007-09-03 11:39 ` gautier_niouzes
2007-09-03 11:59 ` shoshanister
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox