comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: Ada pointers to functions
Date: 1999/11/23
Date: 1999-11-23T00:00:00+00:00	[thread overview]
Message-ID: <383ab221_1@news1.prserv.net> (raw)
In-Reply-To: 3839DC14.74BE166C@algopharm.com

In article <3839DC14.74BE166C@algopharm.com> , Eric poirier 
<computer@algopharm.com>  wrote:

> -->  type T_Ptr_Func is array (1..10) of Message_Procedure;   <--
>
> Is this legal ???

Yes.

> And how should I call one of these function-pointed in an array ???

declare
  Messages : T_Ptr_Func;
begin
  <populate Messages array>
  for I in Messages'Range loop
    Messages (I).all;
    Messages (I)("this is a message");
  end loop;
end;


--
The new standards [for science curricula in Kansas] do not forbid the
teaching of evolution, but the subject will no longer be included in
statewide tests for evaluating students--a virtual guarantee, given the
realities of education, that this central concept of biology will be
diluted or eliminated, thus reducing courses to something like chemistry
without the periodic table, or American history without Lincoln.

Stephen Jay Gould, Time, 23 Aug 1999




      reply	other threads:[~1999-11-23  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-23  0:00 Ada pointers to functions Eric poirier
1999-11-23  0:00 ` Matthew Heaney [this message]
replies disabled

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