From: Alfred Hilscher <Alfred.Hilscher@icn.siemens.de>
Subject: Re: Multi-dimensional Array of Functions ?
Date: 2000/05/05
Date: 2000-05-05T00:00:00+00:00 [thread overview]
Message-ID: <3912D6C8.9188250B@icn.siemens.de> (raw)
In-Reply-To: 169b2ded.062ddfc5@usw-ex0109-068.remarq.com
John O'Malley wrote:
>
> I am a newbie to ada and I am looking for an example of an
> array of functions. The project I am currently working on
> has a procedure which is a gaint case statement with nested
> cases that make function calls. This procedure is
> unreadable and could easily be reduced by 99% by using a
> multidimensional array containing pointers to functions.
You want put C code to Ada ? Did you think about whether there would be
a possiblilty to do it more "Ada like" ?
> I know how to create an array of pointers to functions in C
> and I was wondering if this is even possible in ada 83 or
It should be.
> 95. If it is possible, do all the functions in the array
> have to be formatted the same (i.e same pass and return
> parameters)?
Yes.
> Any help and/or examples would be appreciated.
Look into the archives in Dejanews. There was a similar question a few
weeks ago.
> Thanks,
>
> John
next prev parent reply other threads:[~2000-05-05 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-04 0:00 Multi-dimensional Array of Functions ? John O'Malley
2000-05-05 0:00 ` Jim Rogers
2000-05-05 0:00 ` Alfred Hilscher [this message]
2000-05-05 0:00 ` Ted Dennison
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox