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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,35782846f963b1e5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.219.170 with SMTP id pp10mr2090330pbc.1.1342199652702; Fri, 13 Jul 2012 10:14:12 -0700 (PDT) Path: l9ni11649pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?bj=F6rn_lundin?= Newsgroups: comp.lang.ada Subject: Re: on the need to duplicate code for procedure signature in both body and interface files Date: Fri, 13 Jul 2012 10:12:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7240103a-0072-42e4-b2db-c010b6f410a4@googlegroups.com> References: NNTP-Posting-Host: 46.195.169.58 Mime-Version: 1.0 X-Trace: posting.google.com 1342199652 30905 127.0.0.1 (13 Jul 2012 17:14:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 Jul 2012 17:14:12 +0000 (UTC) Cc: nma@12000.org In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.195.169.58; posting-account=3_reEwoAAAC163IAIrx427KYmwahFuh9 User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-07-13T10:12:25-07:00 List-Id: Den s=F6ndagen den 8:e juli 2012 kl. 01:08:53 UTC+2 skrev Nasser M. Abbasi: > Basic question from an Ada newbie. >=20 > One thing that always bothered me in Ada is the need > to physically duplicate the code that represents the API > of the package procedures and functions in both the interface > and the body files (.ads and .adb). >=20 I think a good reason is when you hvae a large system to write. I person does the design, and writes thes specs. He the writes a basic flow, while others may write the implementations. It was perhaps more important in the days before good version handling syst= ems. But still, it is a useful feature, just as separates are. When many people wants to change in the same file, separate some functions = may help. And they are still visible in the body. /Bj=F6rn