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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.58.69.78 with SMTP id c14mr1547026veu.41.1403277505537; Fri, 20 Jun 2014 08:18:25 -0700 (PDT) X-Received: by 10.140.44.75 with SMTP id f69mr71114qga.11.1403277505513; Fri, 20 Jun 2014 08:18:25 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!i13no7252215qae.1!news-out.google.com!a8ni10889qaq.1!nntp.google.com!i13no7252211qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 20 Jun 2014 08:18:25 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=109.233.148.43; posting-account=ZoAlyAoAAACOOtSiXyaM8n3y8T4ScfeH NNTP-Posting-Host: 109.233.148.43 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <610b9d5b-a9a5-464d-9de3-b2f754f58cff@googlegroups.com> Subject: Function definitions From: montgrimpulo Injection-Date: Fri, 20 Jun 2014 15:18:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 1887 X-Received-Body-CRC: 359893838 Xref: news.eternal-september.org comp.lang.ada:20470 Date: 2014-06-20T08:18:25-07:00 List-Id: 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 ?