From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.228.162 with SMTP id sj2mr1722317pac.11.1403279088464; Fri, 20 Jun 2014 08:44:48 -0700 (PDT) X-Received: by 10.50.103.104 with SMTP id fv8mr92214igb.2.1403279088209; Fri, 20 Jun 2014 08:44:48 -0700 (PDT) Path: border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!uq10no1123412igb.0!news-out.google.com!gf2ni11igb.0!nntp.google.com!hn18no2457986igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 20 Jun 2014 08:44:47 -0700 (PDT) In-Reply-To: <610b9d5b-a9a5-464d-9de3-b2f754f58cff@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <610b9d5b-a9a5-464d-9de3-b2f754f58cff@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0b686797-ed9e-486f-b3f2-f11b7badf93a@googlegroups.com> Subject: Re: Function definitions From: Adam Beneschan Injection-Date: Fri, 20 Jun 2014 15:44:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:187092 Date: 2014-06-20T08:44:47-07:00 List-Id: 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