From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: Function definitions
Date: Fri, 20 Jun 2014 08:44:47 -0700 (PDT)
Date: 2014-06-20T08:44:47-07:00 [thread overview]
Message-ID: <0b686797-ed9e-486f-b3f2-f11b7badf93a@googlegroups.com> (raw)
In-Reply-To: <610b9d5b-a9a5-464d-9de3-b2f754f58cff@googlegroups.com>
On Friday, June 20, 2014 8:18:25 AM UTC-7, montgrimpulo wrote:
> 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.
It's kind of hard to tell what's going on when you try to describe your program in English instead of just showing us code.
I don't think it's possible to define a record containing unconstrained arrays; a record component that has an array type has to be constrained by something, possibly a record discriminant.
However, I can't answer anything else since I really don't understand what you're trying to do. Please post some code.
-- Adam
next prev parent reply other threads:[~2014-06-20 15:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 15:18 Function definitions montgrimpulo
2014-06-20 15:44 ` Adam Beneschan [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox