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.67.193 with SMTP id p1mr1780601vet.36.1403281350526; Fri, 20 Jun 2014 09:22:30 -0700 (PDT) X-Received: by 10.140.108.66 with SMTP id i60mr18766qgf.39.1403281350486; Fri, 20 Jun 2014 09:22:30 -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!i13no7293724qae.1!news-out.google.com!a8ni10889qaq.1!nntp.google.com!i13no7293719qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 20 Jun 2014 09:22:30 -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=109.233.148.43; posting-account=ZoAlyAoAAACOOtSiXyaM8n3y8T4ScfeH NNTP-Posting-Host: 109.233.148.43 References: <610b9d5b-a9a5-464d-9de3-b2f754f58cff@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5a8316fb-9b3d-405b-8199-edcaf18dcaa6@googlegroups.com> Subject: Re: Function definitions From: montgrimpulo Injection-Date: Fri, 20 Jun 2014 16:22:30 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2306 X-Received-Body-CRC: 3622370297 Xref: news.eternal-september.org comp.lang.ada:20472 Date: 2014-06-20T09:22:30-07:00 List-Id: My modified question: 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, as function F (V : Individual) return Long_Float; and function G(M : Natural; V : Individual) return Long_Float; Individual is defined as a Record containing several arrays with a size determined by variables, eg . type Individual is record X : x_array (0 .. P); Y : y_array (0 .. Q); Z : z_array (0 .. R); end record; In search.adb there are several procedures using the functions F and G defined in search.ads. The general search procedure g_search (P, Q, R) (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. P,Q,R), only in file 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. I hope that description is sufficient to answer my question on how to define F and G, so that I can use the general search procedure g_search with many different versions of F and G ?