comp.lang.ada
 help / color / mirror / Atom feed
* Function definitions
@ 2014-06-20 15:18 montgrimpulo
  2014-06-20 15:44 ` Adam Beneschan
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: montgrimpulo @ 2014-06-20 15:18 UTC (permalink / raw)


Hi,

What would be an answer to the following question:

There are three files : search.ads, search.adb, main_search.adb

In search.ads two functions are defined:  function F and function G, like

function F (V : Individual) return Long_Float; and
function G(M : Natural; V : Individual) return Long_Float;

V is defined as a Record containing several unconstrained arrays.

In search.adb there are several procedures programmed using the functions F and G defined in search.ads.

The general search function (defined in search.adb) is called in main_search.adb. As I want to define  the internal statements of F and G, and other paramenters, (eg. concerning the
size of the arrays in V), only in main_search.adb, I don't know how to define F and G in search.ads / search.adb, as their body is claimed to be missing in search.adb.

Would a possible solution use an access type for the functions F and G ?

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-06-22 12:27 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20 15:18 Function definitions montgrimpulo
2014-06-20 15:44 ` Adam Beneschan
2014-06-20 16:22 ` montgrimpulo
2014-06-20 16:43   ` Adam Beneschan
2014-06-20 16:52     ` Simon Clubley
2014-06-20 17:05       ` Adam Beneschan
2014-06-20 16:43   ` Simon Clubley
2014-06-22  6:59   ` Shark8
2014-06-20 17:39 ` montgrimpulo
2014-06-20 18:19   ` Adam Beneschan
2014-06-20 18:20     ` Adam Beneschan
2014-06-21 20:56     ` Stephen Leake
2014-06-22 12:27     ` Simon Clubley
2014-06-20 20:39   ` Robert A Duff
2014-06-21 12:27 ` montgrimpulo
2014-06-21 12:38   ` Simon Clubley
2014-06-21 17:57   ` Jeffrey Carter
2014-06-21 13:40 ` montgrimpulo

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